Allow archive with stories only.

This commit is contained in:
John Preston
2023-07-18 12:15:19 +04:00
parent 35214d108e
commit 4402cce928
17 changed files with 207 additions and 78 deletions
@@ -949,7 +949,8 @@ SessionController::SessionController(
) | rpl::filter([=](Data::Folder *folder) {
return (folder != nullptr)
&& (folder == _openedFolder.current())
&& folder->chatsList()->indexed()->empty();
&& folder->chatsList()->indexed()->empty()
&& !folder->storiesCount();
}) | rpl::start_with_next([=](Data::Folder *folder) {
folder->updateChatListSortPosition();
closeFolder();