From 95e33b5a973ba32837894424b3ee57735b0a04f5 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 14 Mar 2017 11:09:34 +0100 Subject: [PATCH] never mark conversation w/ own server as stranger --- .../eu/siacs/conversations/entities/Conversation.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index 35fc913da..415e68b57 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -1005,11 +1005,10 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl } public boolean isWithStranger() { - if (mode == MODE_SINGLE) { - return !getContact().mutualPresenceSubscription() && sentMessagesCount() == 0; - } else { - return false; - } + return mode == MODE_SINGLE + && !getJid().equals(account.getJid().toDomainJid()) + && !getContact().mutualPresenceSubscription() + && sentMessagesCount() == 0; } public class Smp {