TF-3941 Thread Detail Thread level mark read/star, archive and spam
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user