mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
fix: crash
This commit is contained in:
parent
df0c1f814a
commit
5d145cc613
1 changed files with 4 additions and 1 deletions
|
@ -480,7 +480,10 @@ not_null<HistoryItem*> History::insertItem(
|
|||
}
|
||||
|
||||
void History::destroyMessage(not_null<HistoryItem*> item) {
|
||||
Expects(item->isHistoryEntry() || !item->mainView());
|
||||
// Expects(item->isHistoryEntry() || !item->mainView());
|
||||
if (!(item->isHistoryEntry() || !item->mainView())) {
|
||||
return; // AyuGram: fix crash when using `saveDeletedMessages`
|
||||
}
|
||||
|
||||
const auto peerId = peer->id;
|
||||
if (item->isHistoryEntry()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue