Skip to content
Snippets Groups Projects
Commit 2438b8b6 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

Fix off-by-one bug when displaying display names / avatar urls when paginating.

parent efb0f6e2
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,13 @@ function(matrixService, $rootScope, $q, $timeout, mPresence, notificationService
}
else if (!isLiveEvent) {
// mutate the old room state
var oldEvent = angular.copy(event);
if (event.prev_content) {
// the m.room.member event we are handling is the NEW event. When
// we keep going back in time, we want the PREVIOUS value for displaying
// names/etc, hence the clobber here.
event.content = event.prev_content;
}
room.old_room_state.storeStateEvent(angular.copy(event));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment