From 55e1a74d128339f471fbb48b16808bf26788cf63 Mon Sep 17 00:00:00 2001 From: blank X Date: Sat, 22 Jan 2022 00:59:16 +0000 Subject: [PATCH] Check if user is a channel before showing Mention user (#295) --- Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index f7e0ca5a5..83bf0fb6f 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -1554,7 +1554,7 @@ base::unique_qptr 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); }),