2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use user phrases for support accounts.

This commit is contained in:
John Preston
2019-03-12 14:36:33 +04:00
parent b798654ca7
commit 13a9b967e9
21 changed files with 98 additions and 79 deletions

View File

@@ -275,10 +275,10 @@ void Filler::addToggleUnreadMark() {
void Filler::addBlockUser(not_null<UserData*> user) {
auto blockText = [](not_null<UserData*> user) {
return lang(user->isBlocked()
? (user->botInfo
? ((user->isBot() && !user->isSupport())
? lng_profile_restart_bot
: lng_profile_unblock_user)
: (user->botInfo
: ((user->isBot() && !user->isSupport())
? lng_profile_block_bot
: lng_profile_block_user));
};