Explorar o código

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

JC Brand %!s(int64=12) %!d(string=hai) anos
pai
achega
75adfc92f2
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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') {