mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
clarify comment
This commit is contained in:
parent
150f58a6b3
commit
fd54539e1c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user