mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Disable reaction button on Call messages.
This commit is contained in:
parent
90821428d3
commit
4cbfcc8dbc
1 changed files with 8 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue