never use isStranger logic in conversation with self
This commit is contained in:
parent
7368df94f7
commit
5e1bbea5f0
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue