mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Added ability to edit media in scheduled messages.
This commit is contained in:
@@ -774,11 +774,12 @@ bool HistoryMessage::allowsForward() const {
|
||||
}
|
||||
|
||||
bool HistoryMessage::allowsSendNow() const {
|
||||
return isScheduled() && !isSending() && !hasFailed();
|
||||
return isScheduled() && !isSending() && !hasFailed() && !isEditingMedia();
|
||||
}
|
||||
|
||||
bool HistoryMessage::isTooOldForEdit(TimeId now) const {
|
||||
return !_history->peer->canEditMessagesIndefinitely()
|
||||
&& !isScheduled()
|
||||
&& (now - date() >= _history->session().serverConfig().editTimeLimit);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user