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

View file

@ -920,9 +920,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;
}