forked from mirror/monocles_chat_clean
never use isStranger logic in conversation with self
This commit is contained in:
parent
56acec7de4
commit
ecd82fd9bb
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue