mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed unwanted switching to default filter on creation of tabs strip.
This commit is contained in:
@@ -227,6 +227,7 @@ not_null<Ui::RpWidget*> AddChatFiltersTabsStrip(
|
||||
? st::dialogsSearchTabs
|
||||
: st::chatsFiltersTabs));
|
||||
const auto state = wrap->lifetime().make_state<State>();
|
||||
state->lastFilterId = controller->activeChatsFilterCurrent();
|
||||
const auto reassignUnreadValue = [=] {
|
||||
state->reorderLifetime.destroy();
|
||||
const auto &list = session->data().chatsFilters().list();
|
||||
|
||||
Reference in New Issue
Block a user