Remove linked channel after receiving CHANNEL_PRIVATE.

GitOrigin-RevId: 50dd9ba04261c10d3f3dd13bda4c78357949d442
This commit is contained in:
levlam 2020-01-21 16:15:32 +03:00
parent e6b209fb72
commit 8366da5ca1

View File

@ -9440,6 +9440,7 @@ bool ContactsManager::on_get_channel_error(ChannelId channel_id, const Status &s
c->has_location = false;
update_channel(c, channel_id);
}
on_update_channel_linked_channel_id(channel_id, ChannelId());
}
invalidate_channel_full(channel_id, false, !c->is_slow_mode_enabled);
LOG_IF(ERROR, have_input_peer_channel(c, channel_id, AccessRights::Read))