forked from mystiq/hydrogen-web
Add update method
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
4fcaac3865
commit
b62473ae79
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue