2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Optimize out most of LastUserInputTime() calls.

Fixes #16118.
This commit is contained in:
John Preston
2021-06-18 19:22:36 +04:00
parent 8897f9e46a
commit e1120d1cb5
12 changed files with 53 additions and 32 deletions

View File

@@ -67,7 +67,7 @@ void Controller::showAccount(not_null<Main::Account*> account) {
for (auto &[index, account] : _account->domain().accounts()) {
if (const auto anotherSession = account->maybeSession()) {
if (anotherSession->uniqueId() == prevSessionUniqueId) {
anotherSession->updates().updateOnline();
anotherSession->updates().updateOnline(crl::now());
return;
}
}