TF-2271 Implement dns lookup to get jmap url

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 7b0c0015a15a243b6b4aef3d78e7653d556ad109)
This commit is contained in:
dab246
2023-11-10 17:06:50 +07:00
committed by Dat Vu
parent c0bef69435
commit 9b661b0688
33 changed files with 773 additions and 483 deletions
@@ -127,9 +127,7 @@ class MailboxTree with EquatableMixin {
}
Map<Role, PresentationMailbox> get mapPresentationMailboxByRole {
if (root.childrenItems?.isEmpty == true) {
return {};
} else {
if (root.childrenItems?.isNotEmpty == true) {
final listPresentationMailboxHasRole = root.childrenItems!
.where((node) => node.item.role != null)
.map((node) => node.item)
@@ -139,6 +137,8 @@ class MailboxTree with EquatableMixin {
for (var mailbox in listPresentationMailboxHasRole)
mailbox.role!: mailbox
};
} else {
return {};
}
}