Prevents from sending invalid presence packets, before MUC jid is defined.
This commit is contained in:
parent
93c13f5a11
commit
d175dfdef7
|
@ -19,7 +19,7 @@
|
||||||
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
|
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
|
||||||
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
|
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
|
||||||
<script src="interface_config.js?v=5"></script>
|
<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 -->
|
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
|
||||||
<link rel="stylesheet" href="css/font.css?v=6"/>
|
<link rel="stylesheet" href="css/font.css?v=6"/>
|
||||||
<link rel="stylesheet" href="css/toastr.css?v=1">
|
<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 () {
|
sendPresence: function () {
|
||||||
|
if (!this.presMap['to']) {
|
||||||
|
// Too early to send presence - not initialized
|
||||||
|
return;
|
||||||
|
}
|
||||||
var pres = $pres({to: this.presMap['to'] });
|
var pres = $pres({to: this.presMap['to'] });
|
||||||
pres.c('x', {xmlns: this.presMap['xns']});
|
pres.c('x', {xmlns: this.presMap['xns']});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue