Don't check ChannelFull for bots.
This commit is contained in:
parent
da5ba34850
commit
6707463e85
@ -5500,7 +5500,7 @@ bool ContactsManager::can_use_premium_custom_emoji(DialogId dialog_id) const {
|
|||||||
}
|
}
|
||||||
if (dialog_id.get_type() == DialogType::Channel) {
|
if (dialog_id.get_type() == DialogType::Channel) {
|
||||||
auto channel_id = dialog_id.get_channel_id();
|
auto channel_id = dialog_id.get_channel_id();
|
||||||
if (is_megagroup_channel(channel_id)) {
|
if (!td_->auth_manager_->is_bot() && is_megagroup_channel(channel_id)) {
|
||||||
auto channel_full = get_channel_full_const(channel_id);
|
auto channel_full = get_channel_full_const(channel_id);
|
||||||
if (channel_full == nullptr || channel_full->emoji_sticker_set_id.is_valid()) {
|
if (channel_full == nullptr || channel_full->emoji_sticker_set_id.is_valid()) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user