mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
fix: most frequent crashes
This commit is contained in:
parent
45461836e1
commit
260678634e
3 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ void MainList::unreadStateChanged(
|
|||
const auto notifier = unreadStateChangeNotifier(notify);
|
||||
_unreadState += nowState - wasState;
|
||||
if (updateCloudUnread) {
|
||||
Assert(nowState.known);
|
||||
// Assert(nowState.known);
|
||||
_cloudUnreadState += nowState - wasState;
|
||||
finalizeCloudUnread();
|
||||
}
|
||||
|
|
|
@ -3527,7 +3527,7 @@ void HistoryWidget::messagesReceived(
|
|||
const MTPmessages_Messages &messages,
|
||||
int requestId) {
|
||||
// Expects(_history != nullptr);
|
||||
if (!_history) {
|
||||
if (!_history || !_peer) {
|
||||
return; // AyuGram: fix crash when using `saveDeletedMessages`
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 05601adb9f045f54ca8377d0555dae6d5ce48c7d
|
||||
Subproject commit b0beb8a162168ebeacafa2ff23b21addb4154e69
|
Loading…
Add table
Reference in a new issue