mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix crash in scheduled messages 'Send Now'.
This commit is contained in:
@@ -750,7 +750,7 @@ bool HistoryMessage::allowsForward() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool HistoryMessage::allowsSendNow() const {
|
bool HistoryMessage::allowsSendNow() const {
|
||||||
return isScheduled();
|
return isScheduled() && !isSending() && !hasFailed();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HistoryMessage::isTooOldForEdit(TimeId now) const {
|
bool HistoryMessage::isTooOldForEdit(TimeId now) const {
|
||||||
|
Reference in New Issue
Block a user