From cc444fa20725ee10fe88bb5fd687016fccc3f4d4 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 3 Jun 2021 21:00:25 +0200 Subject: [PATCH] we actually don't need any of the view model infrastructure all the updates go over the observable list --- src/domain/session/room/timeline/ReactionsViewModel.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/domain/session/room/timeline/ReactionsViewModel.js b/src/domain/session/room/timeline/ReactionsViewModel.js index ba9b7eb4..5f3b01a7 100644 --- a/src/domain/session/room/timeline/ReactionsViewModel.js +++ b/src/domain/session/room/timeline/ReactionsViewModel.js @@ -16,9 +16,8 @@ limitations under the License. import {ViewModel} from "../../../ViewModel.js"; import {ObservableMap} from "../../../../observable/map/ObservableMap.js"; -export class ReactionsViewModel extends ViewModel { +export class ReactionsViewModel { constructor(parentEntry) { - super(); this._parentEntry = parentEntry; this._map = new ObservableMap(); this._reactions = this._map.sortValues((a, b) => a._compare(b)); @@ -50,9 +49,8 @@ export class ReactionsViewModel extends ViewModel { } } -class ReactionViewModel extends ViewModel { +class ReactionViewModel { constructor(key, annotation, parentEntry) { - super(); this._key = key; this._annotation = annotation; this._parentEntry = parentEntry;