-
Notifications
You must be signed in to change notification settings - Fork 93
TF-3894 Fix blank email content when opening email #3896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
TF-3894 Fix blank email content when opening email #3896
Conversation
Signed-off-by: dab246 <tdvu@linagora.com>
0ce3802
to
68dc9e9
Compare
This PR has been deployed to https://linagora.github.io/tmail-flutter/3896. |
@@ -129,6 +129,26 @@ extension SessionExtension on Session { | |||
return null; | |||
} | |||
|
|||
String generateOwnEmailAddressFromDomain(String domain) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We create the exact email the user is using. Because identity has many different emails, only the domain is the same.
final identityEmailAddress = listIdentities.firstOrNull?.email ?? ''; | ||
final domain = EmailUtils.getDomainByEmailAddress(identityEmailAddress); | ||
final userEmailAddress = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still not understand this point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We create the exact email the user is using. Because identity has many different emails, only the domain is the same.
thank you |
gentle ping on this PR. |
Issue
#3894
Root cause
The
Stalwart
server does not return any email address in the session (#3717 (comment)) lead tosession.getOwnEmailAddress()
throwing exception.tmail-flutter/lib/features/thread_detail/presentation/thread_detail_view.dart
Line 44 in be0ef81
Reproduce
reproduce.mov
Resolved
ownEmailAddress
& identitywith-own-email-address.mov
ownEmailAddress
& with identitywith-identities.mov
ownEmailAddress
& identitywitout-identities.mov