From e94a9b36b37b40796df1f9b76f92faaff93824fc Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 29 Oct 2021 12:16:22 +0530 Subject: [PATCH] Do not call hasSeenUpdate onUpdate Signed-off-by: RMidhunSuresh --- src/domain/session/room/timeline/TimelineViewModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/room/timeline/TimelineViewModel.js b/src/domain/session/room/timeline/TimelineViewModel.js index 22259099..f12d8511 100644 --- a/src/domain/session/room/timeline/TimelineViewModel.js +++ b/src/domain/session/room/timeline/TimelineViewModel.js @@ -56,7 +56,7 @@ export class TimelineViewModel extends ViewModel { } let hasSeenUpdate = false; const checkForUpdate = (idx, tile) => { - if (tile.shape !== "gap" && !tile.isOwn) { + if (tile.shape !== "gap") { /* It's possible that this method executes before the GapTile has been rendered, so don't count the GapTile as an update. @@ -69,7 +69,7 @@ export class TimelineViewModel extends ViewModel { } const subscription = { onAdd: (idx, tile) => checkForUpdate(idx, tile), - onUpdate: (idx, tile) => checkForUpdate(idx, tile), + onUpdate: () => {/*checkForUpdate(idx, tile)*/}, onRemove: (idx, tile) => checkForUpdate(idx, tile), onMove: () => { /* shouldn't be called */ }, onReset: () => { /* shouldn't be called */ }