diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-09-20 16:26:40 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-09-20 16:26:40 +0200 |
commit | 37aacbeb74919524138e5ab0d25f656f9a9f1b7d (patch) | |
tree | d523593c0833879d824a3792e5e186e63711843c /src/eu/siacs/conversations/entities/Roster.java | |
parent | 0b86f65bdc8dfd979be752798b7cbc3c28317c53 (diff) |
fixed presence splitting
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/entities/Roster.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/entities/Roster.java b/src/eu/siacs/conversations/entities/Roster.java index c6212f77..f11f0250 100644 --- a/src/eu/siacs/conversations/entities/Roster.java +++ b/src/eu/siacs/conversations/entities/Roster.java @@ -15,12 +15,12 @@ public class Roster { } public boolean hasContact(String jid) { - String cleanJid = jid.split("/")[0]; + String cleanJid = jid.split("/",2)[0]; return contacts.containsKey(cleanJid); } public Contact getContact(String jid) { - String cleanJid = jid.split("/")[0].toLowerCase(Locale.getDefault()); + String cleanJid = jid.split("/",2)[0].toLowerCase(Locale.getDefault()); if (contacts.containsKey(cleanJid)) { return contacts.get(cleanJid); } else { |