2
0
Эх сурвалжийг харах

Bugfix. ejabbed doesn't seem to send a 110 status message

JC Brand 12 жил өмнө
parent
commit
75adfc92f2
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  1. 3 2
      converse.js

+ 3 - 2
converse.js

@@ -1305,8 +1305,9 @@
                     // configuration setting.
                     converse.connection.muc.createInstantRoom(room.name);
                 }
-                // check for status 110 to see if it's our own presence
-                if ($presence.find("status[code='110']").length) {
+                if (($presence.find("status[code='110']").length) || (from == room.name+'/'+Strophe.escapeNode(nick))) {
+                    // Check to see if it's our own presence
+                    // code 110 indicates it but ejabberd doesn't seem to comply
                     $item = $presence.find('item');
                     if ($item.length) {
                         if ($item.attr('affiliation') == 'owner') {