aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2018-05-11 19:49:27 +0200
committersteckbrief <steckbrief@chefmail.de>2018-05-11 19:49:27 +0200
commitbff97731deed4c599dcb6c3a2887c9f47165dd3f (patch)
tree1a1479be225fef127146f58d69f32a947c4d013e /src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java
parent1d8c547b447d68daf079d9db2b1d792fc631e462 (diff)
introduces JidUtil for Jid creation, fixes duplication of childs while adding childs with xmlns and name
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java')
-rw-r--r--src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java b/src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java
index 7e4a4fc5..663ea5b5 100644
--- a/src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java
+++ b/src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java
@@ -26,6 +26,7 @@ import de.thedevstack.conversationsplus.R;
import de.thedevstack.conversationsplus.entities.Message;
import de.thedevstack.conversationsplus.xmpp.jid.InvalidJidException;
import de.thedevstack.conversationsplus.xmpp.jid.Jid;
+import de.thedevstack.conversationsplus.xmpp.jid.JidUtil;
public final class CryptoHelper {
public static final String FILETRANSFER = "?FILETRANSFERv1:";
@@ -150,7 +151,7 @@ public final class CryptoHelper {
}
String name = IETFUtils.valueToString(x500name.getRDNs(BCStyle.CN)[0].getFirst().getValue());
if (emails.size() >= 1) {
- return new Pair<>(Jid.fromString(emails.get(0)), name);
+ return new Pair<>(JidUtil.fromString(emails.get(0)), name);
} else {
return null;
}