2
0
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:
John Preston
2017-03-15 19:24:06 +03:00
parent 1027bd431a
commit d91a2403b0
24 changed files with 54 additions and 73 deletions

View File

@@ -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();