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 media within poll.
This commit is contained in:
@@ -119,6 +119,15 @@ struct FileReferenceAccumulator {
|
||||
push(data.vextended_media());
|
||||
}, [&](const MTPDmessageMediaPaidMedia &data) {
|
||||
push(data.vextended_media());
|
||||
}, [&](const MTPDmessageMediaPoll &data) {
|
||||
push(data.vattached_media());
|
||||
for (const auto &answer : data.vpoll().data().vanswers().v) {
|
||||
answer.match([&](const MTPDpollAnswer &a) {
|
||||
push(a.vmedia());
|
||||
}, [](const auto &) {
|
||||
});
|
||||
}
|
||||
push(data.vresults().data().vsolution_media());
|
||||
}, [](const auto &data) {
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user