From b979e11ef519c8994a8a24eb98b365767b434305 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 28 Oct 2021 11:44:09 +0530 Subject: [PATCH] Support onReset and onMove Signed-off-by: RMidhunSuresh --- src/domain/session/room/timeline/TimelineViewModel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/domain/session/room/timeline/TimelineViewModel.js b/src/domain/session/room/timeline/TimelineViewModel.js index c261760c..8ff6b09e 100644 --- a/src/domain/session/room/timeline/TimelineViewModel.js +++ b/src/domain/session/room/timeline/TimelineViewModel.js @@ -59,7 +59,9 @@ export class TimelineViewModel extends ViewModel { const subscription = { onAdd: (idx, tile) => checkForUpdate(idx, tile), onUpdate: (idx, tile) => checkForUpdate(idx, tile), - onRemove: (idx, tile) => checkForUpdate(idx, tile) + onRemove: (idx, tile) => checkForUpdate(idx, tile), + onMove: (idx, tile) => checkForUpdate(idx, tile), + onReset: (idx, tile) => checkForUpdate(idx, tile) }; this.tiles.subscribe(subscription); const gapResult = await gapPromise;