TF-1436 Show mailbox path in item when search

This commit is contained in:
dab246
2023-02-14 11:03:40 +07:00
committed by Dat Vu
parent 259f5ae6e3
commit 7bb36e6861
@@ -162,10 +162,10 @@ abstract class BaseMailboxController extends BaseController {
}
String? findNodePath(MailboxId mailboxId) {
var mailboxNodePath = defaultMailboxTree.value.getNodePath(mailboxId);
if (mailboxNodePath == null) {
return personalMailboxTree.value.getNodePath(mailboxId);
}
var mailboxNodePath = defaultMailboxTree.value.getNodePath(mailboxId)
?? personalMailboxTree.value.getNodePath(mailboxId)
?? teamMailboxesTree.value.getNodePath(mailboxId);
log('BaseMailboxController::findNodePath():mailboxNodePath: $mailboxNodePath');
return mailboxNodePath;
}