mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Disable reaction button on Call messages.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user