Keep recent peers userpics in memory.

This commit is contained in:
John Preston
2025-08-22 12:17:48 +04:00
parent 57d459b917
commit 10fe5cdd5d
7 changed files with 227 additions and 94 deletions
@@ -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());