Disable reaction button on Call messages.
This commit is contained in:
parent
90821428d3
commit
4cbfcc8dbc
|
@ -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…
Reference in New Issue