never use isStranger logic in conversation with self

This commit is contained in:
Daniel Gultsch 2018-04-20 17:54:30 +02:00
parent 7368df94f7
commit 5e1bbea5f0
1 changed files with 4 additions and 2 deletions

View File

@ -920,9 +920,11 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
} }
public boolean isWithStranger() { public boolean isWithStranger() {
final Contact contact = getContact();
return mode == MODE_SINGLE return mode == MODE_SINGLE
&& !getJid().equals(Jid.ofDomain(account.getJid().getDomain())) && !contactJid.equals(Jid.ofDomain(account.getJid().getDomain()))
&& !getContact().showInRoster() && !contact.showInRoster()
&& !contact.isSelf()
&& sentMessagesCount() == 0; && sentMessagesCount() == 0;
} }