mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +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() {
|
||||
if (!this._powerLevel) {
|
||||
const powerLevels = this._powerLevelsObservable.get();
|
||||
this._powerLevel = powerLevels.getUserLevel(this._member.userId);
|
||||
}
|
||||
return this._powerLevel;
|
||||
return this._powerLevelsObservable.get()?.getUserLevel(this._member.userId);
|
||||
}
|
||||
|
||||
get linkToUser() {
|
||||
|
Loading…
Reference in New Issue
Block a user