diff --git a/Telegram/SourceFiles/history/history_item_components.cpp b/Telegram/SourceFiles/history/history_item_components.cpp index f732c6d0c..89ee22016 100644 --- a/Telegram/SourceFiles/history/history_item_components.cpp +++ b/Telegram/SourceFiles/history/history_item_components.cpp @@ -296,8 +296,9 @@ bool HistoryMessageReply::updateData( } { - const auto peerId = replyToMsg->fullId().peer; - replyToColorKey = (peerIsChannel(peerId) || peerIsChat(peerId)) + const auto peer = replyToMsg->history()->peer; + replyToColorKey = (!holder->out() + && (peer->isMegagroup() || peer->isChat())) ? replyToMsg->from()->id : PeerId(0); }