Always create mailbox with isSubscribed = true

This commit is contained in:
dab246
2023-02-17 13:35:56 +07:00
committed by Dat Vu
parent 7e969c5e38
commit f856ebed4a
3 changed files with 29 additions and 4 deletions
@@ -137,7 +137,14 @@ class MailboxAPI with HandleSetErrorMixin {
Future<Mailbox?> createNewMailbox(AccountId accountId, CreateNewMailboxRequest request) async {
final setMailboxMethod = SetMailboxMethod(accountId)
..addCreate(request.creationId, Mailbox(name: request.newName, parentId: request.parentId));
..addCreate(
request.creationId,
Mailbox(
name: request.newName,
isSubscribed: IsSubscribed(request.isSubscribed),
parentId: request.parentId
)
);
final requestBuilder = JmapRequestBuilder(httpClient, ProcessingInvocation());