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:
@@ -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(
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user