mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Use refs in AuthSession part getters.
Also use only AuthSession data for Contacts/Dialogs loaded state.
This commit is contained in:
@@ -2012,7 +2012,7 @@ namespace {
|
||||
dependent->dependencyItemRemoved(item);
|
||||
}
|
||||
}
|
||||
AuthSession::Current().notifications()->clearFromItem(item);
|
||||
AuthSession::Current().notifications().clearFromItem(item);
|
||||
if (Global::started() && !App::quitting()) {
|
||||
Global::RefItemRemoved().notify(item, true);
|
||||
}
|
||||
@@ -2321,7 +2321,7 @@ namespace {
|
||||
|
||||
if (AuthSession::Exists()) {
|
||||
// Clear notifications to prevent any showNotification() calls while destroying items.
|
||||
AuthSession::Current().notifications()->clearAllFast();
|
||||
AuthSession::Current().notifications().clearAllFast();
|
||||
}
|
||||
|
||||
histories().clear();
|
||||
|
Reference in New Issue
Block a user