mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-30 14:11:39 +01:00
Describe what changed in emitChange()
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
a16c3aacab
commit
862e8569a9
@ -46,13 +46,13 @@ export class MemberDetailsViewModel extends ViewModel {
|
|||||||
|
|
||||||
_onMemberChange() {
|
_onMemberChange() {
|
||||||
this._member = this._observableMember.get();
|
this._member = this._observableMember.get();
|
||||||
this.emitChange();
|
this.emitChange("member");
|
||||||
}
|
}
|
||||||
|
|
||||||
_onPowerLevelsChange() {
|
_onPowerLevelsChange() {
|
||||||
const powerLevels = this._powerLevelsObservable.get();
|
const powerLevels = this._powerLevelsObservable.get();
|
||||||
this._powerLevel = powerLevels.getUserLevel(this._member.userId);
|
this._powerLevel = powerLevels.getUserLevel(this._member.userId);
|
||||||
this.emitChange();
|
this.emitChange("role");
|
||||||
}
|
}
|
||||||
|
|
||||||
get avatarLetter() {
|
get avatarLetter() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user