Fixed lost caption on forwarded polls after send confirmation.

This commit is contained in:
23rd
2026-05-10 09:24:32 +03:00
committed by John Preston
parent 32babde420
commit bfbb8d672a
@@ -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(