Commit 12da915e authored by Christoph's avatar Christoph

Fix [object Object] being shown as status when other presence stanza with...

Fix [object Object] being shown as status when other presence stanza with custom 'status' is received from other resource
parent 0d4cf15f
...@@ -4457,7 +4457,7 @@ ...@@ -4457,7 +4457,7 @@
if ((converse.connection.jid !== jid)&&(presence_type !== 'unavailable')) { if ((converse.connection.jid !== jid)&&(presence_type !== 'unavailable')) {
// Another resource has changed its status, we'll update ours as well. // Another resource has changed its status, we'll update ours as well.
converse.xmppstatus.save({'status': chat_status}); converse.xmppstatus.save({'status': chat_status});
if (status_message.length) { converse.xmppstatus.save({'status_message': status_message}); } if (status_message.length) { converse.xmppstatus.save({'status_message': status_message.text()}); }
} }
return; return;
} else if (($presence.find('x').attr('xmlns') || '').indexOf(Strophe.NS.MUC) === 0) { } else if (($presence.find('x').attr('xmlns') || '').indexOf(Strophe.NS.MUC) === 0) {
......
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