1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

Treat XMPP addresses as case insensitive. SMACK-157

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2388 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-09-30 01:00:56 +00:00 committed by gdombiak
parent d1e5bb5c6d
commit 444306f7cd
3 changed files with 7 additions and 7 deletions

View file

@ -153,7 +153,7 @@ public class RosterGroup {
synchronized (entries) {
for (Iterator i=entries.iterator(); i.hasNext(); ) {
RosterEntry entry = (RosterEntry)i.next();
if (entry.getUser().equals(user)) {
if (entry.getUser().toLowerCase().equals(user.toLowerCase())) {
return entry;
}
}
@ -189,7 +189,7 @@ public class RosterGroup {
synchronized (entries) {
for (Iterator i=entries.iterator(); i.hasNext(); ) {
RosterEntry entry = (RosterEntry)i.next();
if (entry.getUser().equals(user)) {
if (entry.getUser().toLowerCase().equals(user.toLowerCase())) {
return true;
}
}