mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Show auth domain only
This commit is contained in:
parent
fd029a633f
commit
b0da760972
1 changed files with 4 additions and 3 deletions
|
@ -3534,9 +3534,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
|
||||
if (message.from != null && message.from.length > 0) {
|
||||
sb.insert(0, '\n');
|
||||
sb.insert(0, MessageHelper.formatAddresses(
|
||||
message.from, MessageHelper.AddressFormat.EMAIL_ONLY, false));
|
||||
String email = ((InternetAddress) message.from[0]).getAddress();
|
||||
String domain = UriHelper.getEmailDomain(email);
|
||||
if (!TextUtils.isEmpty(domain))
|
||||
sb.insert(0, '\n').insert(0, domain);
|
||||
}
|
||||
|
||||
ToastEx.makeText(context, sb.toString(), Toast.LENGTH_LONG).show();
|
||||
|
|
Loading…
Reference in a new issue