2
0
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:
John Preston
2020-03-23 15:10:09 +04:00
parent 6022fa790e
commit d5b8fc703e
4 changed files with 13 additions and 8 deletions

View File

@@ -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();
}