matrix-js-sdk
88827fab - EventTimeline: Fix baseIndex after removing the last event

Commit
9 years ago
EventTimeline: Fix baseIndex after removing the last event Removing the last event in an EventTimeline (as we might, for instance, if it was a local echo in an empty timeline) got us into a state where the baseIndex would increment when adding events to the end of the timeline, causing much confusion.
Author
Parents
Loading