From 90135131c0175c6a16ec018bf1a95dcc4039cadb Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 1 May 2018 23:18:05 +0200 Subject: [PATCH] fixed omemo by default setting for users on same domain. fixes #3006 --- src/main/java/eu/siacs/conversations/entities/Contact.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Contact.java b/src/main/java/eu/siacs/conversations/entities/Contact.java index c17d92c06..ad264c792 100644 --- a/src/main/java/eu/siacs/conversations/entities/Contact.java +++ b/src/main/java/eu/siacs/conversations/entities/Contact.java @@ -446,8 +446,8 @@ public class Contact implements ListItem, Blockable { return account.getJid().asBareJid().equals(jid.asBareJid()); } - public boolean isOwnServer() { - return account.getJid().getDomain().equals(jid.getDomain()); + boolean isOwnServer() { + return account.getJid().getDomain().equals(jid.asBareJid().toString()); } public void setCommonName(String cn) {