mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 05:58:38 +00:00
Fix crash in handlePendingHistoryUpdate().
This method is called from InvokeQueued, so the auth session could be destroyed already and should be checked before being accessed.
This commit is contained in:
parent
2f816942b8
commit
e0c74c9546
@ -361,6 +361,9 @@ void historyMuteUpdated(History *history) {
|
||||
}
|
||||
|
||||
void handlePendingHistoryUpdate() {
|
||||
if (!AuthSession::Exists()) {
|
||||
return;
|
||||
}
|
||||
AuthSession::Current().data().pendingHistoryResize().notify(true);
|
||||
|
||||
for (auto item : base::take(Global::RefPendingRepaintItems())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user