From d4ce42ac849cbf2c5313bc667c8dc8ae778cc29f Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Fri, 4 Jul 2014 16:25:02 +0200 Subject: [PATCH] made account jid lowercase --- src/eu/siacs/conversations/entities/Account.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eu/siacs/conversations/entities/Account.java b/src/eu/siacs/conversations/entities/Account.java index b9c87eacc..a73d49f91 100644 --- a/src/eu/siacs/conversations/entities/Account.java +++ b/src/eu/siacs/conversations/entities/Account.java @@ -1,6 +1,7 @@ package eu.siacs.conversations.entities; import java.security.interfaces.DSAPublicKey; +import java.util.Locale; import net.java.otr4j.crypto.OtrCryptoEngineImpl; import net.java.otr4j.crypto.OtrCryptoException; @@ -149,7 +150,7 @@ public class Account extends AbstractEntity{ } public String getJid() { - return username+"@"+server; + return username.toLowerCase(Locale.getDefault())+"@"+server.toLowerCase(Locale.getDefault()); } public JSONObject getKeys() {