Improve MessageReactor::is_valid().

This commit is contained in:
levlam 2024-08-14 04:41:48 +03:00
parent f02af59f4c
commit 072cba1396

View File

@ -42,7 +42,7 @@ class MessageReactor {
} }
bool is_valid() const { bool is_valid() const {
return (dialog_id_.is_valid() || (!is_me_ && !is_anonymous_)) && count_ > 0 && (is_top_ || is_me_); return count_ > 0 && (is_me_ ? dialog_id_.is_valid() : (dialog_id_.is_valid() || is_anonymous_) && is_top_);
} }
bool is_me() const { bool is_me() const {