2
0
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:
John Preston
2020-03-20 00:20:35 +04:00
parent c4a0bc1fd5
commit b3f8e27661
2 changed files with 7 additions and 4 deletions

View File

@@ -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;