mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Improve error phrase about pin limit.
This commit is contained in:
@@ -156,10 +156,12 @@ bool PinnedLimitReached(Dialogs::Key key, FilterId filterId) {
|
||||
owner->setChatPinned(key, FilterId(), true);
|
||||
entry->session().api().savePinnedOrder(folder);
|
||||
} else {
|
||||
const auto errorText = tr::lng_error_pinned_max(
|
||||
tr::now,
|
||||
lt_count,
|
||||
pinnedMax);
|
||||
const auto errorText = filterId
|
||||
? tr::lng_filters_error_pinned_max(tr::now)
|
||||
: tr::lng_error_pinned_max(
|
||||
tr::now,
|
||||
lt_count,
|
||||
pinnedMax);
|
||||
Ui::show(Box<InformBox>(errorText));
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user