mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Fixed file reference refresh for group and channel photos.
This commit is contained in:
@@ -179,6 +179,15 @@ struct FileReferenceAccumulator {
|
||||
push(full.vfallback_photo());
|
||||
push(full.vprofile_photo());
|
||||
}
|
||||
void push(const MTPChatFull &data) {
|
||||
data.match([&](const MTPDchatFull &data) {
|
||||
push(data.vchat_photo());
|
||||
}, [&](const MTPDchannelFull &data) {
|
||||
push(data.vchat_photo());
|
||||
});
|
||||
}
|
||||
void push(const MTPmessages_ChatFull &data) {
|
||||
push(data.data().vfull_chat());
|
||||
}
|
||||
void push(const MTPmessages_RecentStickers &data) {
|
||||
data.match([&](const MTPDmessages_recentStickers &data) {
|
||||
@@ -250,6 +259,10 @@ UpdatedFileReferences GetFileReferences(const MTPusers_UserFull &data) {
|
||||
return GetFileReferencesHelper(data);
|
||||
}
|
||||
|
||||
UpdatedFileReferences GetFileReferences(const MTPmessages_ChatFull &data) {
|
||||
return GetFileReferencesHelper(data);
|
||||
}
|
||||
|
||||
UpdatedFileReferences GetFileReferences(
|
||||
const MTPmessages_RecentStickers &data) {
|
||||
return GetFileReferencesHelper(data);
|
||||
|
||||
Reference in New Issue
Block a user