TF-3379 Show replyAll button when sender not me
This commit is contained in:
@@ -47,6 +47,10 @@ extension SetEmailAddressExtension on Set<EmailAddress>? {
|
||||
? this!.where((emailAddress) => emailAddress.email != emailAddressNotExist).toList()
|
||||
: List.empty();
|
||||
}
|
||||
|
||||
Set<EmailAddress> withoutMe(String userName) {
|
||||
return filterEmailAddress(userName).toSet();
|
||||
}
|
||||
}
|
||||
|
||||
extension ListEmailAddressExtension on List<EmailAddress> {
|
||||
|
||||
@@ -29,7 +29,16 @@ extension PresentationEmailExtension on PresentationEmail {
|
||||
}
|
||||
}
|
||||
|
||||
int numberOfAllEmailAddress() => to.numberEmailAddress() + cc.numberEmailAddress() + bcc.numberEmailAddress();
|
||||
int get countRecipients =>
|
||||
to.numberEmailAddress() +
|
||||
cc.numberEmailAddress() +
|
||||
bcc.numberEmailAddress();
|
||||
|
||||
int getCountMailAddressWithoutMe(String userName) =>
|
||||
to.withoutMe(userName).numberEmailAddress() +
|
||||
cc.withoutMe(userName).numberEmailAddress() +
|
||||
bcc.withoutMe(userName).numberEmailAddress() +
|
||||
from.withoutMe(userName).numberEmailAddress();
|
||||
|
||||
String getReceivedAt(String newLocale, {String? pattern}) {
|
||||
final emailTime = receivedAt;
|
||||
|
||||
Reference in New Issue
Block a user