From b2a8b243ece4fa24c8ec032d582055c8f6bda547 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 28 Oct 2021 12:05:16 +0530 Subject: [PATCH] Add explaining comment Signed-off-by: RMidhunSuresh --- src/domain/session/room/timeline/TimelineViewModel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/domain/session/room/timeline/TimelineViewModel.js b/src/domain/session/room/timeline/TimelineViewModel.js index 32a92cee..2f47ed77 100644 --- a/src/domain/session/room/timeline/TimelineViewModel.js +++ b/src/domain/session/room/timeline/TimelineViewModel.js @@ -78,6 +78,10 @@ export class TimelineViewModel extends ViewModel { this.tiles.unsubscribe(subscription); } if (!gapResult) { + /* + If gapResult resolves to false, then the gap is already being filled + and is thus being tracked for updates by a previous invocation of this method + */ return; } if (!hasSeenUpdate) {