aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/entities/Roster.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-04 16:22:19 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-04 16:22:19 +0200
commitc68777c67c77f2b488adb70d087870d2fb4e793f (patch)
tree431376cc6806c136945c5e8e4b86d64d9cf63207 /src/eu/siacs/conversations/entities/Roster.java
parent99eb1743e3eb94f85ec0eddeaec81245a9ffed08 (diff)
made contact jids lower case
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/entities/Roster.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/entities/Roster.java b/src/eu/siacs/conversations/entities/Roster.java
index c1e40dbc..aa328664 100644
--- a/src/eu/siacs/conversations/entities/Roster.java
+++ b/src/eu/siacs/conversations/entities/Roster.java
@@ -2,6 +2,7 @@ package eu.siacs.conversations.entities;
import java.util.ArrayList;
import java.util.List;
+import java.util.Locale;
import java.util.concurrent.ConcurrentHashMap;
public class Roster {
@@ -19,7 +20,7 @@ public class Roster {
}
public Contact getContact(String jid) {
- String cleanJid = jid.split("/")[0];
+ String cleanJid = jid.split("/")[0].toLowerCase(Locale.getDefault());
if (contacts.containsKey(cleanJid)) {
return contacts.get(cleanJid);
} else {