Przeglądaj źródła

Fix [object Object] being shown as status when other presence stanza with custom 'status' is received from other resource

Christoph 10 lat temu
rodzic
commit
12da915ef8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -4457,7 +4457,7 @@
                     if ((converse.connection.jid !== jid)&&(presence_type !== 'unavailable')) {
                         // Another resource has changed its status, we'll update ours as well.
                         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;
                 } else if (($presence.find('x').attr('xmlns') || '').indexOf(Strophe.NS.MUC) === 0) {