mirror of
https://github.com/tutao/tutanota.git
synced 2025-10-19 07:53:47 +00:00
Use resolve conversations service when executing mail actions
Close #8506 Co-authored-by: paw <paw-hub@users.noreply.github.com> Co-authored-by: wrd <wrd@tutao.de>
This commit is contained in:
parent
c4c4370533
commit
7a5dec30aa
13 changed files with 125 additions and 79 deletions
|
@ -79,28 +79,11 @@ o.spec("MailModelTest", function () {
|
|||
})
|
||||
|
||||
o("markMails", async function () {
|
||||
const mails = [
|
||||
createTestEntity(MailTypeRef, {
|
||||
_id: ["mailbag id1", "mail id1"],
|
||||
}),
|
||||
createTestEntity(MailTypeRef, {
|
||||
_id: ["mailbag id2", "mail id2"],
|
||||
}),
|
||||
createTestEntity(MailTypeRef, {
|
||||
_id: ["mailbag id3", "mail id3"],
|
||||
}),
|
||||
]
|
||||
await model.markMails(mails, true)
|
||||
verify(
|
||||
mailFacade.markMails(
|
||||
[
|
||||
["mailbag id1", "mail id1"],
|
||||
["mailbag id2", "mail id2"],
|
||||
["mailbag id3", "mail id3"],
|
||||
],
|
||||
true,
|
||||
),
|
||||
)
|
||||
const mailId1: IdTuple = ["mailbag id1", "mail id1"]
|
||||
const mailId2: IdTuple = ["mailbag id2", "mail id2"]
|
||||
const mailId3: IdTuple = ["mailbag id3", "mail id3"]
|
||||
await model.markMails([mailId1, mailId2, mailId3], true)
|
||||
verify(mailFacade.markMails([mailId1, mailId2, mailId3], true))
|
||||
})
|
||||
|
||||
function makeUpdate(arg: { instanceListId: string; instanceId: Id; operation: OperationType }): EntityUpdateData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue