bug fix
This commit is contained in:
parent
127a9e8250
commit
0ced3f594c
4 changed files with 23 additions and 3 deletions
|
@ -164,7 +164,12 @@ class User extends SnowFlake{
|
|||
this.contextmenu.addbutton(()=>I18n.getTranslation("user.friendReq"), function(this: User){
|
||||
this.changeRelationship(1);
|
||||
},null,function(){
|
||||
return this.relationshipType===0;
|
||||
return this.relationshipType===0||this.relationshipType===3;
|
||||
});
|
||||
this.contextmenu.addbutton(()=>I18n.getTranslation("friends.removeFriend"), function(this: User){
|
||||
this.changeRelationship(0);
|
||||
},null,function(){
|
||||
return this.relationshipType===1;
|
||||
});
|
||||
this.contextmenu.addbutton(
|
||||
()=>I18n.getTranslation("user.kick"),
|
||||
|
@ -363,11 +368,15 @@ class User extends SnowFlake{
|
|||
}
|
||||
if(member){
|
||||
member.bind(html);
|
||||
}else{
|
||||
User.contextmenu.bindContextmenu(html, this, undefined);
|
||||
}
|
||||
})
|
||||
.catch(err=>{
|
||||
console.log(err);
|
||||
});
|
||||
}else{
|
||||
User.contextmenu.bindContextmenu(html, this, undefined);
|
||||
}
|
||||
if(guild){
|
||||
this.profileclick(html, guild);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue