Fix available reactions check.

This commit is contained in:
levlam 2023-10-26 10:30:01 +03:00
parent 87f7cdd69f
commit c031818156

View File

@ -23735,7 +23735,7 @@ ChatReactions MessagesManager::get_message_available_reactions(const Dialog *d,
// can't use reactions if can't send messages to the group without joining // can't use reactions if can't send messages to the group without joining
can_use_reactions = false; can_use_reactions = false;
} else if (is_anonymous_administrator(d->dialog_id, nullptr) && !is_broadcast_channel(d->dialog_id) && } else if (is_anonymous_administrator(d->dialog_id, nullptr) && !is_broadcast_channel(d->dialog_id) &&
!!td_->contacts_manager_->get_channel_status(channel_id).is_creator()) { !td_->contacts_manager_->get_channel_status(channel_id).is_creator()) {
// only creator can react as the chat // only creator can react as the chat
can_use_reactions = false; can_use_reactions = false;
} }