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