diff options
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java')
-rw-r--r-- | src/main/java/de/thedevstack/conversationsplus/utils/CryptoHelper.java | 3 |
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; } |