mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08: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