Commit 03c92b44 authored by JC Brand's avatar JC Brand

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.
parent 9a84e44d
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment