never mark conversation w/ own server as stranger

This commit is contained in:
Daniel Gultsch 2017-03-14 11:09:34 +01:00
parent 09d68ae603
commit 95e33b5a97

View File

@ -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 {