diff --git a/Telegram/SourceFiles/boxes/filters/edit_filter_box.cpp b/Telegram/SourceFiles/boxes/filters/edit_filter_box.cpp index e58893c69c..db935d7ccb 100644 --- a/Telegram/SourceFiles/boxes/filters/edit_filter_box.cpp +++ b/Telegram/SourceFiles/boxes/filters/edit_filter_box.cpp @@ -545,6 +545,11 @@ void EditFilterBox( AddSkip(content); AddSubsectionTitle(content, tr::lng_filters_include()); + const auto includeAdd = AddButton( + content, + tr::lng_filters_add_chats() | Ui::Text::ToUpper(), + st::settingsUpdate); + const auto include = SetupChatsPreview( content, data, @@ -552,11 +557,6 @@ void EditFilterBox( kTypes, &Data::ChatFilter::always); - const auto includeAdd = AddButton( - content, - tr::lng_filters_add_chats() | Ui::Text::ToUpper(), - st::settingsUpdate); - AddSkip(content); content->add( object_ptr( @@ -569,6 +569,11 @@ void EditFilterBox( AddSubsectionTitle(content, tr::lng_filters_exclude()); + const auto excludeAdd = AddButton( + content, + tr::lng_filters_remove_chats() | Ui::Text::ToUpper(), + st::settingsUpdate); + const auto exclude = SetupChatsPreview( content, data, @@ -576,11 +581,6 @@ void EditFilterBox( kExcludeTypes, &Data::ChatFilter::never); - const auto excludeAdd = AddButton( - content, - tr::lng_filters_remove_chats() | Ui::Text::ToUpper(), - st::settingsUpdate); - AddSkip(content); content->add( object_ptr(