Răsfoiți Sursa

Bugfix. Check if from exists

JC Brand 12 ani în urmă
părinte
comite
7a46e0ed73
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      Libraries/strophe.muc.js

+ 1 - 0
Libraries/strophe.muc.js

@@ -75,6 +75,7 @@
                 this._muc_handler = this._connection.addHandler(function(stanza) {
                     var from, handler, handlers, id, roomname, x, xmlns, xquery, _i, _len;
                     from = stanza.getAttribute('from');
+                    if (!from) { return true; }
                     roomname = from.split("/")[0];
                     if (!_this.rooms[roomname]) { return true; }
                     room = _this.rooms[roomname];