From fd54539e1c46b4362331f486750a5626681e3898 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 17 Jun 2021 09:41:10 +0200 Subject: [PATCH] clarify comment --- src/domain/session/room/timeline/ReactionsViewModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/room/timeline/ReactionsViewModel.js b/src/domain/session/room/timeline/ReactionsViewModel.js index 575c912b..8bf04d4f 100644 --- a/src/domain/session/room/timeline/ReactionsViewModel.js +++ b/src/domain/session/room/timeline/ReactionsViewModel.js @@ -128,7 +128,7 @@ class ReactionViewModel { } _compare(other) { - // the comparator is also used to test for equality, if the comparison returns 0 + // the comparator is also used to test for equality by sortValues, if the comparison returns 0 // given that the firstTimestamp isn't set anymore when the last reaction is removed, // the remove event wouldn't be able to find the correct index anymore. So special case equality. if (other === this) {