Fixed stuck of history-down button after sending message.

This commit is contained in:
23rd 2022-09-27 22:42:59 +03:00
parent 9cd194e60e
commit acb092f9f2
1 changed files with 4 additions and 0 deletions

View File

@ -3770,6 +3770,10 @@ void HistoryWidget::send(Api::SendOptions options) {
return;
}
if (!options.scheduled) {
clearReplyReturns();
}
const auto webPageId = (_previewState != Data::PreviewState::Allowed)
? CancelledWebPageId
: ((_previewData && _previewData->pendingTill >= 0)