Hot fix cannot send email on cyrus server when the first open app
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -56,6 +56,24 @@ extension MailboxExtension on Mailbox {
|
||||
);
|
||||
}
|
||||
|
||||
Mailbox toMailboxWithoutRole() {
|
||||
return Mailbox(
|
||||
id: id,
|
||||
name: name,
|
||||
parentId: parentId,
|
||||
role: null,
|
||||
sortOrder: sortOrder,
|
||||
totalEmails: totalEmails,
|
||||
unreadEmails: unreadEmails,
|
||||
totalThreads: totalThreads,
|
||||
unreadThreads: unreadThreads,
|
||||
myRights: myRights,
|
||||
isSubscribed: isSubscribed,
|
||||
namespace: namespace,
|
||||
rights: rights,
|
||||
);
|
||||
}
|
||||
|
||||
Mailbox toMailbox(MailboxName mailboxName, {MailboxId? parentId, Role? mailboxRole}) {
|
||||
return Mailbox(
|
||||
id: id,
|
||||
|
||||
Reference in New Issue
Block a user