TF-3941 Thread Detail Thread level mark read/star, archive and spam

This commit is contained in:
DatDang
2025-08-05 14:15:03 +07:00
committed by Dat H. Pham
parent f44118af48
commit b7cd3f7179
35 changed files with 902 additions and 552 deletions
@@ -23,6 +23,16 @@ extension EmailExtension on Email {
}
}
bool checkEmailValidForThreadDetail(
MailboxId sentMailboxId,
String ownEmailAddress) {
return id != null && (
!inSentMailbox(sentMailboxId)
|| !fromMe(ownEmailAddress)
|| !recipientsHasMe(ownEmailAddress)
);
}
bool inSentMailbox(MailboxId sentMailboxId) {
return mailboxIds?[sentMailboxId] == true;
}