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:
@@ -652,14 +652,14 @@ void ActionsFiller::fillUserActions(not_null<UserData*> user) {
|
||||
}
|
||||
addClearHistoryAction(user);
|
||||
addDeleteConversationAction(user);
|
||||
if (!user->isSelf()) {
|
||||
if (user->botInfo) {
|
||||
if (!user->isSelf() && !user->isSupport()) {
|
||||
if (user->isBot()) {
|
||||
addBotCommandActions(user);
|
||||
}
|
||||
_wrap->add(CreateSkipWidget(
|
||||
_wrap,
|
||||
st::infoBlockButtonSkip));
|
||||
if (user->isBot() && !user->isSupport()) {
|
||||
if (user->isBot()) {
|
||||
addReportAction();
|
||||
}
|
||||
addBlockAction(user);
|
||||
|
Reference in New Issue
Block a user