2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Remove some options from Replies three-dot menu.

This commit is contained in:
John Preston
2020-09-15 09:58:24 +03:00
parent e9dffe78e3
commit 040f29abe6
2 changed files with 13 additions and 3 deletions

View File

@@ -253,7 +253,9 @@ Filler::Filler(
}
bool Filler::showInfo() {
if (_source == PeerMenuSource::Profile || _peer->isSelf()) {
if (_source == PeerMenuSource::Profile
|| _peer->isSelf()
|| _peer->isRepliesChat()) {
return false;
} else if (_controller->activeChatCurrent().peer() != _peer) {
return true;
@@ -479,7 +481,9 @@ void Filler::addUserActions(not_null<UserData*> user) {
tr::lng_info_delete_contact(tr::now),
[=] { PeerMenuDeleteContact(user); });
}
if (user->isBot() && !user->botInfo->cantJoinGroups) {
if (user->isBot()
&& !user->isRepliesChat()
&& !user->botInfo->cantJoinGroups) {
using AddBotToGroup = AddBotToGroupBoxController;
_addAction(
tr::lng_profile_invite_to_group(tr::now),
@@ -500,6 +504,7 @@ void Filler::addUserActions(not_null<UserData*> user) {
ClearHistoryHandler(user));
if (!user->isInaccessible()
&& user != user->session().user()
&& !user->isRepliesChat()
&& _source != PeerMenuSource::ChatsList) {
addBlockUser(user);
}