mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Replace App::self() with Auth().user().
Always have self Auth().user() when AuthSession exists.
This commit is contained in:
@@ -263,10 +263,8 @@ void ChatsListBoxController::rebuildRows() {
|
||||
};
|
||||
auto added = 0;
|
||||
if (respectSavedMessagesChat()) {
|
||||
if (auto self = App::self()) {
|
||||
if (appendRow(App::history(self))) {
|
||||
++added;
|
||||
}
|
||||
if (appendRow(App::history(Auth().user()))) {
|
||||
++added;
|
||||
}
|
||||
}
|
||||
added += appendList(App::main()->dialogsList());
|
||||
|
Reference in New Issue
Block a user