Check if user is a channel before showing Mention user (#295)
This commit is contained in:
parent
c94e7b4cbc
commit
55e1a74d12
1 changed files with 1 additions and 1 deletions
|
|
@ -1554,7 +1554,7 @@ base::unique_qptr<Ui::PopupMenu> ParticipantsBoxController::rowContextMenu(
|
|||
user);
|
||||
}), &st::menuIconSearch);
|
||||
if (const auto openedPeer = mainwidget->peer()) {
|
||||
if (openedPeer->canWrite()) {
|
||||
if (openedPeer->canWrite() && participant->isUser()) {
|
||||
result->addAction(
|
||||
ktr("ktg_profile_mention_user"),
|
||||
crl::guard(this, [=] { mainwidget->mentionUser(user); }),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue