Fix reactions for call messages.

This commit is contained in:
John Preston 2025-01-06 10:18:58 +04:00
parent 183dd40f39
commit a87ebd41e7

View file

@ -2600,10 +2600,10 @@ bool HistoryItem::canReact() const {
if (!isRegular()) {
return false;
} else if (isService()) {
return _flags & MessageFlag::ReactionsAllowed;
return (_flags & MessageFlag::ReactionsAllowed);
} else if (const auto media = this->media()) {
if (media->call()) {
return false;
return (_flags & MessageFlag::ReactionsAllowed);
}
}
return true;