Commit d04a1aa1 authored by JC Brand's avatar JC Brand

Call setStatus so that status is broadcasted

parent 7db90a5e
......@@ -2093,7 +2093,7 @@
initStatus: function () {
var stat = this.get('status');
if (stat === undefined) {
this.save({status: 'online'});
this.setStatus('online');
} else {
this.sendPresence(stat);
}
......@@ -2114,7 +2114,7 @@
presence = $pres({'type':type});
} else {
if (type === 'online') {
presence = $pres();
presence = $pres({'type':type});
} else {
presence = $pres().c('show').t(type).up();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment