diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 2f7ddfbfd..ca9d06436 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -2175,7 +2175,8 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) { const auto topic = item->topic(); return topic ? Data::CanSendAnything(topic) - : Data::CanSendAnything(peer); + : (Data::CanSendAnything(peer) + && (!peer->isChannel() || peer->asChannel()->amIn())); }(); if (canReply) { _menu->addAction(tr::lng_context_reply_msg(tr::now), [=] { diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 2c1138cc5..71e023d04 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -6832,6 +6832,9 @@ void HistoryWidget::replyToMessage(FullMsgId itemId) { } void HistoryWidget::replyToMessage(not_null item) { + if (isJoinChannel()) { + return; + } _processingReplyId = item->id; _processingReplyItem = item; processReply();