fixup! TF-3649 Fix reply to own sent email
This commit is contained in:
@@ -198,4 +198,14 @@ mixin ScenarioUtilsMixin {
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
bool isMatchingEmailList(List<EmailAddress> emailList, Set<String> allowedEmails) {
|
||||
if (emailList.length != allowedEmails.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final Set<String> emails = emailList.map((e) => e.email).whereType<String>().toSet();
|
||||
|
||||
return emails.length == allowedEmails.length && emails.containsAll(allowedEmails);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user