소스 검색

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

JC Brand 12 년 전
부모
커밋
75adfc92f2
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      converse.js

+ 3 - 2
converse.js

@@ -1305,8 +1305,9 @@
                     // configuration setting.
                     // configuration setting.
                     converse.connection.muc.createInstantRoom(room.name);
                     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');
                     $item = $presence.find('item');
                     if ($item.length) {
                     if ($item.length) {
                         if ($item.attr('affiliation') == 'owner') {
                         if ($item.attr('affiliation') == 'owner') {