Skip to content

Commit

Permalink
wip saved sublists
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jun 26, 2024
1 parent 0127189 commit 02c6d35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/data/data_saved_sublist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ int SavedSublist::fixedOnTopIndex() const {
return 0;
}

#if 0 // mtp
bool SavedSublist::shouldBeInChatList() const {
return isPinnedDialog(FilterId()) || !_items.empty();
}
#endif

Dialogs::UnreadState SavedSublist::chatListUnreadState() const {
return {};
Expand Down
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/data/data_saved_sublist.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class SavedSublist final : public Dialogs::Entry {
}

int fixedOnTopIndex() const override;
#if 0 // mtp
bool shouldBeInChatList() const override;
#endif
Dialogs::UnreadState chatListUnreadState() const override;
Dialogs::BadgesState chatListBadgesState() const override;
HistoryItem *chatListMessage() const override;
Expand Down

0 comments on commit 02c6d35

Please sign in to comment.