mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 05:37:45 +00:00
Fix a crash in failed-sent scheduled messages.
This commit is contained in:
parent
0fb42ed82a
commit
f7e4f18e9b
@ -79,6 +79,7 @@ bool HasEditMessageAction(const ContextMenuRequest &request) {
|
|||||||
const auto item = request.item;
|
const auto item = request.item;
|
||||||
if (!item
|
if (!item
|
||||||
|| item->isSending()
|
|| item->isSending()
|
||||||
|
|| item->hasFailed()
|
||||||
|| item->isEditingMedia()
|
|| item->isEditingMedia()
|
||||||
|| !request.selectedItems.empty()) {
|
|| !request.selectedItems.empty()) {
|
||||||
return false;
|
return false;
|
||||||
@ -627,9 +628,10 @@ bool AddSelectMessageAction(
|
|||||||
if (request.overSelection && !request.selectedItems.empty()) {
|
if (request.overSelection && !request.selectedItems.empty()) {
|
||||||
return false;
|
return false;
|
||||||
} else if (!item
|
} else if (!item
|
||||||
|| item->isSending()
|
|| item->isSending()
|
||||||
|| !IsServerMsgId(ItemIdAcrossData(item))
|
|| item->hasFailed()
|
||||||
|| item->serviceMsg()) {
|
|| !IsServerMsgId(ItemIdAcrossData(item))
|
||||||
|
|| item->serviceMsg()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const auto owner = &item->history()->owner();
|
const auto owner = &item->history()->owner();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user