From b62473ae79cdc1731ddd3228c90f1b2b1c571461 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 22 Jun 2021 15:51:18 +0530 Subject: [PATCH] Add update method Signed-off-by: RMidhunSuresh --- src/domain/session/rightpanel/MemberTileViewModel.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/domain/session/rightpanel/MemberTileViewModel.js b/src/domain/session/rightpanel/MemberTileViewModel.js index c6c489de..899f2b7b 100644 --- a/src/domain/session/rightpanel/MemberTileViewModel.js +++ b/src/domain/session/rightpanel/MemberTileViewModel.js @@ -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; + } + }