mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 11:36:24 +01:00
Don't cache powerlevel value
Co-authored-by: Bruno Windels <bruno@windels.cloud>
This commit is contained in:
parent
49be4e64ca
commit
974d9bf199
@ -76,11 +76,7 @@ export class MemberDetailsViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get powerLevel() {
|
get powerLevel() {
|
||||||
if (!this._powerLevel) {
|
return this._powerLevelsObservable.get()?.getUserLevel(this._member.userId);
|
||||||
const powerLevels = this._powerLevelsObservable.get();
|
|
||||||
this._powerLevel = powerLevels.getUserLevel(this._member.userId);
|
|
||||||
}
|
|
||||||
return this._powerLevel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get linkToUser() {
|
get linkToUser() {
|
||||||
|
Loading…
Reference in New Issue
Block a user