TF-1311 Check condition isMailboxPersonal

This commit is contained in:
dab246
2023-02-08 15:59:52 +07:00
committed by Dat Vu
parent 9a46f7f865
commit f395fd7dc0
9 changed files with 32 additions and 41 deletions
@@ -148,9 +148,10 @@ abstract class BaseMailboxController extends BaseController {
bool get personalMailboxHasChild =>
personalMailboxTree.value.root.childrenItems?.isNotEmpty ?? false;
bool get teamMailboxesHasChild =>
(teamMailboxesTree.value.root.childrenItems?.isNotEmpty ?? false )
bool get teamMailboxesHasChild {
return (teamMailboxesTree.value.root.childrenItems?.isNotEmpty ?? false)
&& !teamMailboxesTree.value.root.item.isTeamMailboxes;
}
MailboxNode get defaultRootNode => defaultMailboxTree.value.root;