2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update full channel on updateChannel.

This commit is contained in:
John Preston
2019-07-18 11:03:54 +02:00
parent 873b77cf40
commit f4754f210c

View File

@@ -4437,6 +4437,11 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
if (const auto channel = session().data().channelLoaded(d.vchannel_id().v)) {
channel->inviter = UserId(0);
if (channel->amIn()) {
if (channel->isMegagroup()
&& !channel->amCreator()
&& !channel->hasAdminRights()) {
channel->updateFullForced();
}
const auto history = channel->owner().history(channel);
//if (const auto feed = channel->feed()) { // #feed
// feed->requestChatListMessage();