mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added stale media reupload guard before sending poll with expired files.
This commit is contained in:
@@ -2268,9 +2268,13 @@ void PeerMenuCreatePoll(
|
||||
state->create = nullptr;
|
||||
weak->closeBox();
|
||||
}),
|
||||
crl::guard(weak, [=] {
|
||||
crl::guard(weak, [=](bool fileReferenceExpired) {
|
||||
state->lock = false;
|
||||
weak->submitFailed(tr::lng_attach_failed(tr::now));
|
||||
if (fileReferenceExpired) {
|
||||
weak->submitMediaExpired();
|
||||
} else {
|
||||
weak->submitFailed(tr::lng_attach_failed(tr::now));
|
||||
}
|
||||
}));
|
||||
};
|
||||
box->submitRequests(
|
||||
|
||||
Reference in New Issue
Block a user