matrix-js-sdk
8a844d59 - Get historical display names working on messages.

Commit
10 years ago
Get historical display names working on messages. Accessed via MatrixEvent.sender property. Deep copy the list of state events from initial sync for old/current RoomState so updating the .sender property doesn't affect both of them. Reverse the insertion of initial sync MatrixEvents so state diverges to *earlier* points in time. Add a 'forwardLooking' property to MatrixEvent to determine which out of 'content' and 'prev_content' entities should take into account e.g. when determining display names. Finally, always create new RoomMembers when they are updated in order to prevent corrupting (read: sharing the same member object) the MatrixEvent.sender property of existing events in the timeline.
Author
Parents
Loading