profiles: online status and friend rework
This commit is contained in:
@ -15,26 +15,26 @@ class MyProfile extends Profile
|
||||
* @type {[Profile]}
|
||||
*/
|
||||
this.blockedUsers = [];
|
||||
/**
|
||||
* @type {[Profile]}
|
||||
*/
|
||||
this.friendList = [];
|
||||
/**
|
||||
* @type {[Profile]}
|
||||
*/
|
||||
this.incomingFriendRequests = [];
|
||||
/**
|
||||
* @type {[Profile]}
|
||||
*/
|
||||
this.outgoingFriendRequests = [];
|
||||
// /**
|
||||
// * @type {[Profile]}
|
||||
// */
|
||||
// this.friendList = [];
|
||||
// /**
|
||||
// * @type {[Profile]}
|
||||
// */
|
||||
// this.incomingFriendRequests = [];
|
||||
// /**
|
||||
// * @type {[Profile]}
|
||||
// */
|
||||
// this.outgoingFriendRequests = [];
|
||||
}
|
||||
|
||||
async init() {
|
||||
await super.init();
|
||||
await this.getBlockedUsers();
|
||||
await this.getFriends();
|
||||
await this.getIncomingFriendRequests()
|
||||
await this.getOutgoingFriendRequests()
|
||||
// await this.getFriends();
|
||||
// await this.getIncomingFriendRequests()
|
||||
// await this.getOutgoingFriendRequests()
|
||||
}
|
||||
|
||||
async getBlockedUsers() {
|
||||
|
Reference in New Issue
Block a user