TF-3294 Handle open email in Sent mailbox

This commit is contained in:
DatDang
2025-08-21 15:31:25 +07:00
committed by Dat H. Pham
parent e5e1771834
commit 22be6b4b0c
6 changed files with 37 additions and 11 deletions
@@ -21,6 +21,7 @@ class GetThreadByIdInteractor {
AccountId accountId,
MailboxId sentMailboxId,
String ownEmailAddress, {
required bool isSentMailbox,
bool updateCurrentThreadDetail = false,
}) async* {
try {
@@ -36,7 +37,7 @@ class GetThreadByIdInteractor {
);
yield Right(GetThreadByIdSuccess(
result.emailIdsToDisplay,
result.emailIdsToDisplay(isSentMailbox),
threadId: threadId,
updateCurrentThreadDetail: updateCurrentThreadDetail,
emailsInThreadDetailInfo: result,
@@ -51,6 +52,8 @@ class GetThreadByIdInteractor {
accountId,
sentMailboxId,
ownEmailAddress,
isSentMailbox: isSentMailbox,
updateCurrentThreadDetail: updateCurrentThreadDetail,
),
updateCurrentThreadDetail: updateCurrentThreadDetail,
));