Commit d04a1aa1 authored by JC Brand's avatar JC Brand

Call setStatus so that status is broadcasted

parent 7db90a5e
...@@ -2093,7 +2093,7 @@ ...@@ -2093,7 +2093,7 @@
initStatus: function () { initStatus: function () {
var stat = this.get('status'); var stat = this.get('status');
if (stat === undefined) { if (stat === undefined) {
this.save({status: 'online'}); this.setStatus('online');
} else { } else {
this.sendPresence(stat); this.sendPresence(stat);
} }
...@@ -2114,7 +2114,7 @@ ...@@ -2114,7 +2114,7 @@
presence = $pres({'type':type}); presence = $pres({'type':type});
} else { } else {
if (type === 'online') { if (type === 'online') {
presence = $pres(); presence = $pres({'type':type});
} else { } else {
presence = $pres().c('show').t(type).up(); 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