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

This commit is contained in:
paweldomas 2015-04-01 21:12:08 +02:00
parent 93c13f5a11
commit d175dfdef7
3 changed files with 18171 additions and 18163 deletions

View File

@ -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

View File

@ -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']});