Fixed showing sender warning when from self

This commit is contained in:
M66B 2019-08-12 09:06:42 +02:00
parent 5fe3524f37
commit 0f220b2d65
1 changed files with 2 additions and 1 deletions

View File

@ -964,7 +964,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (message.to != null) {
String v = MessageHelper.canonicalAddress(via.getAddress());
for (Address t : message.to) {
if (v.equals(MessageHelper.canonicalAddress(((InternetAddress) t).getAddress()))) {
if (EntityFolder.isOutgoing(message.folderType) ||
v.equals(MessageHelper.canonicalAddress(((InternetAddress) t).getAddress()))) {
self = true;
break;
}