sent messages from unverified devices show red lock

This commit is contained in:
Daniel Gultsch 2016-11-28 15:08:33 +01:00
parent fdf19ae287
commit fb6f0649c3

View file

@ -208,7 +208,7 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
.getAccount().getAxolotlService().getFingerprintTrust( .getAccount().getAxolotlService().getFingerprintTrust(
message.getFingerprint()); message.getFingerprint());
if(status == null || (!status.isVerified() && inValidSession)) { if(status == null || (type == SENT ? !status.isTrusted() : (!status.isVerified() && inValidSession))) {
viewHolder.indicator.setColorFilter(0xffc64545); viewHolder.indicator.setColorFilter(0xffc64545);
viewHolder.indicator.setAlpha(1.0f); viewHolder.indicator.setAlpha(1.0f);
} else { } else {