Disable reaction button on Call messages.

This commit is contained in:
John Preston 2021-12-30 14:33:09 +03:00
parent 90821428d3
commit 4cbfcc8dbc
1 changed files with 8 additions and 1 deletions

View File

@ -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) {