mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix Ctrl+[1-5] jump to pinned in folders.
This commit is contained in:
@@ -1557,8 +1557,6 @@ void Session::applyDialog(
|
||||
int Session::pinnedChatsCount(
|
||||
Data::Folder *folder,
|
||||
FilterId filterId) const {
|
||||
Expects(!folder || !filterId);
|
||||
|
||||
if (!filterId) {
|
||||
return pinnedChatsOrder(folder, filterId).size();
|
||||
}
|
||||
@@ -1591,7 +1589,7 @@ const std::vector<Dialogs::Key> &Session::pinnedChatsOrder(
|
||||
return list->pinned()->order();
|
||||
}
|
||||
|
||||
void Session::clearPinnedChats(Data::Folder *folder, FilterId filterId) {
|
||||
void Session::clearPinnedChats(Data::Folder *folder) {
|
||||
chatsList(folder)->pinned()->clear();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user