fix(profiles): online null when not authenticated
This commit is contained in:
@ -30,6 +30,11 @@ export class Profile extends AExchangeable
|
||||
*/
|
||||
this.avatar = avatar;
|
||||
|
||||
/**
|
||||
* @type {Boolean}
|
||||
**/
|
||||
this.online = null;
|
||||
|
||||
/**
|
||||
* @type {Boolean}
|
||||
*/
|
||||
@ -58,6 +63,7 @@ export class Profile extends AExchangeable
|
||||
this.id = response_data.id;
|
||||
this.username = response_data.username;
|
||||
this.avatar = response_data.avatar;
|
||||
this.online = response_data.online
|
||||
|
||||
if (!this.client.me || this.client.me.id === this.id)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user