made account jid lowercase

This commit is contained in:
iNPUTmice 2014-07-04 16:25:02 +02:00
parent c68777c67c
commit d4ce42ac84
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package eu.siacs.conversations.entities; package eu.siacs.conversations.entities;
import java.security.interfaces.DSAPublicKey; import java.security.interfaces.DSAPublicKey;
import java.util.Locale;
import net.java.otr4j.crypto.OtrCryptoEngineImpl; import net.java.otr4j.crypto.OtrCryptoEngineImpl;
import net.java.otr4j.crypto.OtrCryptoException; import net.java.otr4j.crypto.OtrCryptoException;
@ -149,7 +150,7 @@ public class Account extends AbstractEntity{
} }
public String getJid() { public String getJid() {
return username+"@"+server; return username.toLowerCase(Locale.getDefault())+"@"+server.toLowerCase(Locale.getDefault());
} }
public JSONObject getKeys() { public JSONObject getKeys() {