mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 21:57:42 +00:00
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…
x
Reference in New Issue
Block a user