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:
@@ -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 {};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user