TF-1705 Auto create default folder no role if missing on server CYRUS
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 918a554f1fbc5816d48dd00bf01be8624b9dcc9b)
This commit is contained in:
@@ -455,7 +455,7 @@ class MailboxAPI with HandleSetErrorMixin {
|
||||
.toList();
|
||||
}
|
||||
|
||||
Future<List<MailboxId>> setRoleDefaultMailbox(
|
||||
Future<void> setRoleDefaultMailbox(
|
||||
Session session,
|
||||
AccountId accountId,
|
||||
List<Mailbox> listMailbox
|
||||
@@ -488,15 +488,6 @@ class MailboxAPI with HandleSetErrorMixin {
|
||||
|
||||
if (mapErrors.isNotEmpty) {
|
||||
throw SetMailboxMethodException(mapErrors);
|
||||
} else {
|
||||
final mapMailboxUpdated = updateResponse?.updated ?? <Id, Mailbox>{};
|
||||
final listMailboxIdNotUpdated = listMailbox
|
||||
.map((mailbox) => mailbox.id)
|
||||
.whereNotNull()
|
||||
.where((mailboxId) => !mapMailboxUpdated.containsKey(mailboxId.id))
|
||||
.toList();
|
||||
log('MailboxAPI::setRoleDefaultMailbox:listMailboxIdNotUpdated: ${listMailboxIdNotUpdated.length}');
|
||||
return listMailboxIdNotUpdated;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user