Remove toLowerCase. JID resources are case sensitive. updates #234
We should perhaps still make the node part lower case, but I'd like to double check first.
This commit is contained in:
parent
9a84e44db4
commit
03c92b4487
@ -2906,7 +2906,7 @@
|
||||
var contact_jid, $forwarded, $received, $sent,
|
||||
msgid = $message.attr('id'),
|
||||
chatbox, resource, roster_item,
|
||||
message_from = $message.attr('from').toLowerCase();
|
||||
message_from = $message.attr('from');
|
||||
if (message_from === converse.connection.jid) {
|
||||
// FIXME: Forwarded messages should be sent to specific resources,
|
||||
// not broadcasted
|
||||
@ -2933,7 +2933,7 @@
|
||||
contact_jid = to;
|
||||
resource = Strophe.getResourceFromJid($message.attr('to'));
|
||||
} else {
|
||||
contact_jid = from;
|
||||
contact_jid = from; // XXX: Should we add toLowerCase here? See ticket #234
|
||||
resource = Strophe.getResourceFromJid(message_from);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user