2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 05:58:38 +00:00

Fix crash in scheduled messages 'Send Now'.

This commit is contained in:
John Preston 2019-09-09 17:43:39 +03:00
parent 90b955534a
commit c1ab1acd44

View File

@ -750,7 +750,7 @@ bool HistoryMessage::allowsForward() const {
}
bool HistoryMessage::allowsSendNow() const {
return isScheduled();
return isScheduled() && !isSending() && !hasFailed();
}
bool HistoryMessage::isTooOldForEdit(TimeId now) const {