diff options
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/Conversation.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Conversation.java b/src/main/java/de/pixart/messenger/entities/Conversation.java index a6c79050c..6f995b2be 100644 --- a/src/main/java/de/pixart/messenger/entities/Conversation.java +++ b/src/main/java/de/pixart/messenger/entities/Conversation.java @@ -1107,9 +1107,11 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl } public boolean isWithStranger() { + final Contact contact = getContact(); return mode == MODE_SINGLE - && !getJid().equals(Jid.ofDomain(account.getJid().getDomain())) - && !getContact().showInRoster() + && !contactJid.equals(Jid.ofDomain(account.getJid().getDomain())) + && !contact.showInRoster() + && !contact.isSelf() && sentMessagesCount() == 0; } |