mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Add update method
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
4fcaac3865
commit
b62473ae79
@ -3,7 +3,8 @@ import {ViewModel} from "../../ViewModel.js";
|
||||
export class MemberTileViewModel extends ViewModel {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
this._member = options.member;
|
||||
this._member = this._options.member;
|
||||
this._shouldDisambiguate = options.shouldDisambiguate;
|
||||
}
|
||||
|
||||
get name() {
|
||||
@ -13,4 +14,9 @@ export class MemberTileViewModel extends ViewModel {
|
||||
get userId() {
|
||||
return this._member.userId;
|
||||
}
|
||||
|
||||
updateFrom(newMember) {
|
||||
this._member = newMember;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user