TF-2459 Add replyTo field when replyAll

This commit is contained in:
hieubt
2024-01-23 10:56:40 +07:00
committed by Dat H. Pham
parent 79cb6a4118
commit f39af40885
@@ -130,7 +130,8 @@ extension PresentationEmailExtension on PresentationEmail {
if (mailboxRole == PresentationMailbox.roleSent) {
return Tuple3(to.asList(), cc.asList(), bcc.asList());
} else {
return Tuple3(to.asList() + from.asList(), cc.asList(), bcc.asList());
final senderReplyToAddress = replyTo.asList().isNotEmpty ? replyTo.asList() : from.asList();
return Tuple3(to.asList() + senderReplyToAddress, cc.asList(), bcc.asList());
}
default:
return Tuple3(to.asList(), cc.asList(), bcc.asList());