Fixed possible crash on sponsored messages.
This commit is contained in:
parent
f4a3d87b5d
commit
5c4b68d632
|
@ -634,7 +634,9 @@ bool HistoryItem::canStopPoll() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HistoryItem::canDelete() const {
|
bool HistoryItem::canDelete() const {
|
||||||
if (!IsServerMsgId(id) && serviceMsg()) {
|
if (isSponsored()) {
|
||||||
|
return false;
|
||||||
|
} else if (!IsServerMsgId(id) && serviceMsg()) {
|
||||||
return false;
|
return false;
|
||||||
} else if (!isHistoryEntry() && !isScheduled()) {
|
} else if (!isHistoryEntry() && !isScheduled()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue