2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Update API: support "All Chats" reordering.

This commit is contained in:
John Preston
2022-05-17 13:24:35 +04:00
parent 73bacfc650
commit fe91887ea2
13 changed files with 113 additions and 36 deletions

View File

@@ -424,7 +424,9 @@ void FilterRowButton::paintEvent(QPaintEvent *e) {
};
const auto &list = session->data().chatsFilters().list();
for (const auto &filter : list) {
addFilter(filter);
if (filter.id()) {
addFilter(filter);
}
}
AddButton(

View File

@@ -289,7 +289,7 @@ void SetupSections(
st::settingsButton,
{ &st::settingsIconFolders, kIconDarkBlue }))
)->setDuration(0);
if (!controller->session().data().chatsFilters().list().empty()
if (controller->session().data().chatsFilters().has()
|| controller->session().settings().dialogsFiltersEnabled()) {
slided->show(anim::type::instant);
preload();