TF-4002 Don't need to keep the expand/collapse state of creation dialog the same as the mailbox view

This commit is contained in:
dab246
2025-09-15 11:44:45 +07:00
committed by Dat H. Pham
parent 745175e6c4
commit 615ebd8cd6
6 changed files with 31 additions and 32 deletions
@@ -844,11 +844,7 @@ class MailboxController extends BaseMailboxController
void goToCreateNewMailboxView(BuildContext context, {PresentationMailbox? parentMailbox}) async {
if (session != null && accountId != null) {
final arguments = MailboxCreatorArguments(
defaultMailboxTree.value,
personalMailboxTree.value,
parentMailbox,
);
final arguments = MailboxCreatorArguments(allMailboxes, parentMailbox);
final result = PlatformInfo.isWeb
? await DialogRouter.pushGeneralDialog(routeName: AppRoutes.mailboxCreator, arguments: arguments)
@@ -48,6 +48,7 @@ class TreeBuilder {
required MailboxTree currentPersonalTree,
required MailboxTree currentTeamMailboxTree,
MailboxId? mailboxIdSelected,
MailboxId? mailboxIdExpanded,
}) async {
final Map<MailboxId, MailboxNode> mailboxDictionary = HashMap();