Prevents from sending invalid presence packets, before MUC jid is defined.

pull/232/merge 473
paweldomas 10 years ago
parent 93c13f5a11
commit d175dfdef7
  1. 2
      index.html
  2. 36328
      libs/app.bundle.js
  3. 4
      modules/xmpp/strophe.emuc.js

@ -19,7 +19,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=5"></script>
<script src="libs/app.bundle.js?v=52"></script>
<script src="libs/app.bundle.js?v=53"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=6"/>
<link rel="stylesheet" href="css/toastr.css?v=1">

File diff suppressed because it is too large Load Diff

@ -405,6 +405,10 @@ module.exports = function(XMPP, eventEmitter) {
});
},
sendPresence: function () {
if (!this.presMap['to']) {
// Too early to send presence - not initialized
return;
}
var pres = $pres({to: this.presMap['to'] });
pres.c('x', {xmlns: this.presMap['xns']});

Loading…
Cancel
Save