mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Improve support accounts presentation.
- Change "Bot Info" to "User Info". - Remove "Block user" and "Add to Group" buttons from profile page. - Allow revoking messages from support chats.
This commit is contained in:
@@ -556,11 +556,11 @@ rpl::producer<QString> TitleValue(
|
||||
case Section::Type::Profile:
|
||||
if (const auto feed = key.feed()) {
|
||||
return lng_info_feed_title;
|
||||
} else if (auto user = peer->asUser()) {
|
||||
return user->botInfo
|
||||
} else if (const auto user = peer->asUser()) {
|
||||
return (user->isBot() && !user->isSupport())
|
||||
? lng_info_bot_title
|
||||
: lng_info_user_title;
|
||||
} else if (auto channel = peer->asChannel()) {
|
||||
} else if (const auto channel = peer->asChannel()) {
|
||||
return channel->isMegagroup()
|
||||
? lng_info_group_title
|
||||
: lng_info_channel_title;
|
||||
|
Reference in New Issue
Block a user