2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Show selected sublist as active in list.

This commit is contained in:
John Preston
2024-01-02 12:59:22 +04:00
parent 175914f02b
commit c51a8816eb
4 changed files with 15 additions and 2 deletions

View File

@@ -2446,6 +2446,10 @@ auto MainWidget::thirdSectionForCurrentMainSection(
return std::make_shared<Info::Memento>(
peer,
Info::Memento::DefaultSection(peer));
} else if (const auto sublist = key.sublist()) {
return std::make_shared<Info::Memento>(
session().user(),
Info::Memento::DefaultSection(session().user()));
}
Unexpected("Key in MainWidget::thirdSectionForCurrentMainSection().");
}