From 0b2d4326e713b288c80b9ff76e783d97bec1aba0 Mon Sep 17 00:00:00 2001 From: seniorivn Date: Fri, 3 Apr 2020 19:37:40 +0300 Subject: [PATCH] add folder commands for custom config --- Telegram/SourceFiles/core/shortcuts.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Telegram/SourceFiles/core/shortcuts.cpp b/Telegram/SourceFiles/core/shortcuts.cpp index 2907dcf83..2f6b1208f 100644 --- a/Telegram/SourceFiles/core/shortcuts.cpp +++ b/Telegram/SourceFiles/core/shortcuts.cpp @@ -74,6 +74,20 @@ const auto CommandByName = base::flat_map{ { qsl("first_chat") , Command::ChatFirst }, { qsl("last_chat") , Command::ChatLast }, { qsl("self_chat") , Command::ChatSelf }, + + + { qsl("previous_folder") , Command::FolderPrevious }, + { qsl("next_folder") , Command::FolderNext }, + { qsl("all_chats") , Command::ShowAllChats }, + + { qsl("folder1") , Command::ShowFolder1 }, + { qsl("folder2") , Command::ShowFolder2 }, + { qsl("folder3") , Command::ShowFolder3 }, + { qsl("folder4") , Command::ShowFolder4 }, + { qsl("folder5") , Command::ShowFolder5 }, + { qsl("folder6") , Command::ShowFolder6 }, + { qsl("last_folder") , Command::ShowFolderLast }, + { qsl("show_archive") , Command::ShowArchive }, @@ -104,6 +118,10 @@ const auto CommandNames = base::flat_map{ { Command::ChatFirst , qsl("first_chat") }, { Command::ChatLast , qsl("last_chat") }, { Command::ChatSelf , qsl("self_chat") }, + + + { Command::FolderPrevious , qsl("previous_folder") }, + { Command::FolderNext , qsl("next_folder") }, { Command::ShowArchive , qsl("show_archive") }, };