mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: crash
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user