Preload created channels to correctly transfer ownership.
GitOrigin-RevId: 2741d029d494e4b1ac40d74e70bfb603e988676a
This commit is contained in:
parent
7a92ee35fc
commit
b49d4076c8
@ -12407,6 +12407,11 @@ void ContactsManager::on_chat_update(telegram_api::channel &channel, const char
|
||||
return;
|
||||
}
|
||||
|
||||
if (status.is_creator()) {
|
||||
// to correctly calculate is_ownership_transferred in on_update_channel_status
|
||||
get_channel_force(channel_id);
|
||||
}
|
||||
|
||||
Channel *c = add_channel(channel_id, "on_channel");
|
||||
if (c->status.is_banned()) { // possibly uninited channel
|
||||
min_channels_.erase(channel_id);
|
||||
|
Loading…
Reference in New Issue
Block a user