TF-4227 Add integration test on mobile for case display_view_with_all_email_with_tag_scenario

This commit is contained in:
dab246
2026-01-07 12:10:04 +07:00
committed by Dat H. Pham
parent a4aceec107
commit 2052fdbe5e
13 changed files with 415 additions and 11 deletions
@@ -60,18 +60,30 @@ extension CreateEmailRequestExtension on CreateEmailRequest {
Set<EmailBodyPart> createAttachments() => attachments?.toEmailBodyPart() ?? {};
Map<KeyWordIdentifier, bool>? createKeywords() {
if (draftsMailboxId != null) {
return {
KeyWordIdentifier.emailDraft: true,
KeyWordIdentifier.emailSeen: true,
};
} else if (templateMailboxId != null) {
return {
KeyWordIdentifier.emailSeen: true,
};
} else {
if (draftsMailboxId == null &&
templateMailboxId == null &&
keywords == null) {
return null;
}
final result = <KeyWordIdentifier, bool>{};
if (draftsMailboxId != null) {
result.addAll({
KeyWordIdentifier.emailDraft: true,
KeyWordIdentifier.emailSeen: true,
});
} else if (templateMailboxId != null) {
result[KeyWordIdentifier.emailSeen] = true;
}
if (keywords != null) {
for (final keyword in keywords!) {
result[keyword] = true;
}
}
return result;
}
Map<MailboxId, bool>? createMailboxIds() {