mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 01:08:02 +00:00
Keep recent peers userpics in memory.
This commit is contained in:
@@ -1760,6 +1760,12 @@ void SessionController::setupShortcuts() {
|
||||
_chatSwitchProcess->chosen(
|
||||
) | rpl::start_with_next([=](not_null<Data::Thread*> thread) {
|
||||
close();
|
||||
|
||||
const auto id = SeparateId(thread);
|
||||
if (const auto window = Core::App().separateWindowFor(id)) {
|
||||
window->activate();
|
||||
return;
|
||||
}
|
||||
jumpToChatListEntry({ Dialogs::Key(thread), FullMsgId() });
|
||||
}, _chatSwitchProcess->lifetime());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user