mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fixed possible crash on sponsored messages.
This commit is contained in:
parent
f4a3d87b5d
commit
5c4b68d632
1 changed files with 3 additions and 1 deletions
|
@ -634,7 +634,9 @@ bool HistoryItem::canStopPoll() const {
|
|||
}
|
||||
|
||||
bool HistoryItem::canDelete() const {
|
||||
if (!IsServerMsgId(id) && serviceMsg()) {
|
||||
if (isSponsored()) {
|
||||
return false;
|
||||
} else if (!IsServerMsgId(id) && serviceMsg()) {
|
||||
return false;
|
||||
} else if (!isHistoryEntry() && !isScheduled()) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue