From 4cbfcc8dbcb1c60a27dfd634937ea31c05460003 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 30 Dec 2021 14:33:09 +0300 Subject: [PATCH] Disable reaction button on Call messages. --- Telegram/SourceFiles/history/history_item.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index de34b82cf3..d85a8641f5 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -767,7 +767,14 @@ bool HistoryItem::suggestDeleteAllReport() const { } bool HistoryItem::canReact() const { - return isRegular() && !isService(); + if (!isRegular() || isService()) { + return false; + } else if (const auto media = this->media()) { + if (media->call()) { + return false; + } + } + return true; } void HistoryItem::addReaction(const QString &reaction) {