瀏覽代碼

Add more logging to try and debug 431

JC Brand 10 年之前
父節點
當前提交
b310d8a143
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      converse.js

+ 3 - 3
converse.js

@@ -3296,12 +3296,12 @@
                     is_me = from_bare_jid == converse.bare_jid;
 
                 if (to_resource && to_resource !== converse.resource) { 
-                    // Ignore messages sent to a different resource
+                    converse.log('Ignore incoming message intended for a different resource: '+from_jid, 'info');
                     return true;
                 }
                 if (message_from === converse.connection.jid) {
-                    // FIXME: Forwarded messages should be sent to specific resources,
-                    // not broadcasted
+                    // FIXME: Forwarded messages should be sent to specific resources, not broadcasted
+                    converse.log("Ignore incoming message sent from this client's JID: "+from_jid, 'info');
                     return true;
                 }
                 $forwarded = $message.children('forwarded');