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
1 changed files with 1 additions and 1 deletions

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 {