diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 8098f9b5e..e04fa612f 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -794,11 +794,17 @@ void HistoryItem::addReaction(const QString &reaction) { void HistoryItem::toggleReaction(const QString &reaction) { if (!_reactions) { _reactions = std::make_unique(this); + const auto canViewReactions = !isDiscussionPost() + && (history()->peer->isChat() || history()->peer->isMegagroup()); + if (canViewReactions) { + _flags |= MessageFlag::CanViewReactions; + } _reactions->add(reaction); } else if (_reactions->chosen() == reaction) { _reactions->remove(); if (_reactions->empty()) { _reactions = nullptr; + _flags &= ~MessageFlag::CanViewReactions; history()->owner().notifyItemDataChange(this); } } else {