|
|
@ -41,10 +41,12 @@ export class User {
|
|
|
|
this.joinedAt = userDataResponse.joinedAt;
|
|
|
|
this.joinedAt = userDataResponse.joinedAt;
|
|
|
|
this.friendCount = userDataResponse.friendCount;
|
|
|
|
this.friendCount = userDataResponse.friendCount;
|
|
|
|
this.groupCount = userDataResponse.groupCount;
|
|
|
|
this.groupCount = userDataResponse.groupCount;
|
|
|
|
try {
|
|
|
|
if (userDataResponse.settings) {
|
|
|
|
this.darkmode = !!JSON.parse(userDataResponse.settings).darkmode;
|
|
|
|
try {
|
|
|
|
} catch (err) {
|
|
|
|
this.darkmode = !!JSON.parse(userDataResponse.settings).darkmode;
|
|
|
|
console.error(err);
|
|
|
|
} catch (err) {
|
|
|
|
|
|
|
|
console.error(err);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (userDataResponse.friends) {
|
|
|
|
if (userDataResponse.friends) {
|
|
|
|
this.friends = userDataResponse.friends
|
|
|
|
this.friends = userDataResponse.friends
|
|
|
|