Update ContactsManager::have_input_peer_channel.
GitOrigin-RevId: ae8fb4a5d3ee7f7c7740382f35ff01a287770b53
This commit is contained in:
parent
3d3ddf655b
commit
da9141a431
@ -4089,7 +4089,7 @@ bool ContactsManager::have_input_peer_channel(const Channel *c, ChannelId channe
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!from_linked && c->is_megagroup) {
|
if (!from_linked && c->is_megagroup && !td_->auth_manager_->is_bot()) {
|
||||||
auto linked_channel_id = get_linked_channel_id(channel_id);
|
auto linked_channel_id = get_linked_channel_id(channel_id);
|
||||||
if (linked_channel_id.is_valid()) {
|
if (linked_channel_id.is_valid()) {
|
||||||
return is_public ||
|
return is_public ||
|
||||||
|
Loading…
Reference in New Issue
Block a user