2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Notify about feed channels list changes.

This commit is contained in:
John Preston
2018-01-29 16:52:09 +03:00
parent 3a5a002be2
commit 366ea1edc3
8 changed files with 87 additions and 8 deletions

View File

@@ -299,6 +299,13 @@ void PeerData::setUserpicChecked(
|| _userpicLocation != location) {
setUserpic(photoId, location, userpic);
Notify::peerUpdatedDelayed(this, UpdateFlag::PhotoChanged);
if (const auto channel = asChannel()) {
if (const auto feed = channel->feed()) {
Auth().data().notifyFeedUpdated(
feed,
Data::FeedUpdateFlag::ChannelPhoto);
}
}
}
}