correct trim switched
This commit is contained in:
@@ -80,6 +80,7 @@ class Localuser{
|
|||||||
this.handleVoice();
|
this.handleVoice();
|
||||||
this.mfa_enabled = ready.d.user.mfa_enabled as boolean;
|
this.mfa_enabled = ready.d.user.mfa_enabled as boolean;
|
||||||
this.userinfo.username = this.user.username;
|
this.userinfo.username = this.user.username;
|
||||||
|
this.userinfo.id = this.user.id;
|
||||||
this.userinfo.pfpsrc = this.user.getpfpsrc();
|
this.userinfo.pfpsrc = this.user.getpfpsrc();
|
||||||
this.status = this.ready.d.user_settings.status;
|
this.status = this.ready.d.user_settings.status;
|
||||||
this.channelfocus = undefined;
|
this.channelfocus = undefined;
|
||||||
|
@@ -47,7 +47,7 @@ function trimswitcher(){
|
|||||||
if(wellknown.at(-1) !== "/"){
|
if(wellknown.at(-1) !== "/"){
|
||||||
wellknown += "/";
|
wellknown += "/";
|
||||||
}
|
}
|
||||||
wellknown += user.username;
|
wellknown =(user.id||user.email)+"@"+wellknown;
|
||||||
if(map.has(wellknown)){
|
if(map.has(wellknown)){
|
||||||
const otheruser = map.get(wellknown);
|
const otheruser = map.get(wellknown);
|
||||||
if(otheruser[1].serverurls.wellknown.at(-1) === "/"){
|
if(otheruser[1].serverurls.wellknown.at(-1) === "/"){
|
||||||
@@ -178,6 +178,13 @@ class Specialuser{
|
|||||||
get localuserStore(){
|
get localuserStore(){
|
||||||
return this.json.localuserStore;
|
return this.json.localuserStore;
|
||||||
}
|
}
|
||||||
|
set id(e){
|
||||||
|
this.json.id = e;
|
||||||
|
this.updateLocal();
|
||||||
|
}
|
||||||
|
get id(){
|
||||||
|
return this.json.id;
|
||||||
|
}
|
||||||
get uid(){
|
get uid(){
|
||||||
return this.email + this.serverurls.wellknown;
|
return this.email + this.serverurls.wellknown;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user