mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Fixed lost caption on forwarded polls after send confirmation.
This commit is contained in:
@@ -2396,7 +2396,12 @@ bool MediaPoll::updateInlineResultMedia(const MTPMessageMedia &media) {
|
||||
}
|
||||
|
||||
bool MediaPoll::updateSentMedia(const MTPMessageMedia &media) {
|
||||
return false;
|
||||
return media.match([&](const MTPDmessageMediaPoll &data) {
|
||||
parent()->history()->owner().processPoll(data);
|
||||
return true;
|
||||
}, [](const auto &) {
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
std::unique_ptr<HistoryView::Media> MediaPoll::createView(
|
||||
|
||||
Reference in New Issue
Block a user