[poll-create] Added document file preview overlay.

This commit is contained in:
23rd
2026-03-19 20:39:59 +03:00
parent 7e7af4118d
commit 66c450fc0d
5 changed files with 232 additions and 13 deletions
@@ -2251,6 +2251,13 @@ object_ptr<Ui::RpWidget> CreatePollBox::setupContent() {
},
remove);
return;
} else if (document) {
HistoryView::ShowPollDocumentPreview(
_controller,
document,
[=] { chooseDocument(media); },
remove);
return;
}
state->mediaMenu = base::make_unique_q<Ui::PopupMenu>(
button,