fixup! TF-3649 Fix reply to own sent email

This commit is contained in:
DatDang
2025-04-15 11:46:36 +07:00
committed by Dat H. Pham
parent 6cac72b09e
commit 43aee1d286
4 changed files with 64 additions and 1 deletions
@@ -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);
}
}