Apply reply-self to reply header

This commit is contained in:
M66B 2021-02-24 12:19:35 +01:00
parent 49bf624c36
commit ea6d15d935
1 changed files with 6 additions and 2 deletions

View File

@ -368,8 +368,12 @@ public class EntityMessage implements Serializable {
p.appendText(subject);
p.appendElement("br");
}
} else
p.text(DF.format(new Date(received)) + " " + MessageHelper.formatAddresses(from) + ":");
} else {
DB db = DB.getInstance(context);
List<TupleIdentityEx> identities = db.identity().getComposableIdentities(account);
boolean self = replySelf(identities, account);
p.text(DF.format(new Date(received)) + " " + MessageHelper.formatAddresses(self ? to : from) + ":");
}
if (separate) {
Element div = document.createElement("div");