mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-06-27 21:07:07 -04:00
SYWEB-116: Implement historical display name support.
This works for both live and paginated events. Each 'message' event has an associated '__room_member' key which points to the state of the sender at that point in time. Invites have an additional key '__target_room_member' which point to the state of the invitee at that point in time. This obviates the need for mapping user_ids to *current* displaynames in the message list, though this is still required for the user/presence list.
This commit is contained in:
parent
1c86ec5b8d
commit
5949571fe7
4 changed files with 12 additions and 9 deletions
|
@ -213,7 +213,9 @@ function(matrixService, $rootScope, $q, $timeout, mPresence, notificationService
|
|||
// The events are copied to avoid referencing the same event when adding
|
||||
// the message (circular json structures)
|
||||
if (isStateEvent || isLiveEvent) {
|
||||
room.current_room_state.storeStateEvent(angular.copy(event));
|
||||
var newEvent = angular.copy(event);
|
||||
newEvent.cnt = event.content;
|
||||
room.current_room_state.storeStateEvent(newEvent);
|
||||
}
|
||||
else if (!isLiveEvent) {
|
||||
// mutate the old room state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue