mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 19:03:42 +00:00
fix: a couple of crashes
fix: disable peer ids again
This commit is contained in:
@@ -4258,7 +4258,9 @@ void Session::registerItemView(not_null<ViewElement*> view) {
|
||||
}
|
||||
|
||||
void Session::unregisterItemView(not_null<ViewElement*> view) {
|
||||
Expects(!_heavyViewParts.contains(view));
|
||||
if (!_heavyViewParts.contains(view)) {
|
||||
return; // AyuGram: fix crash when using `saveDeletedMessages`
|
||||
}
|
||||
|
||||
_shownSpoilers.remove(view);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user