mirror of
				https://git.anonymousland.org/anonymousland/synapse.git
				synced 2025-10-30 20:48:54 -04:00 
			
		
		
		
	Fix off-by-one bug when displaying display names / avatar urls when paginating.
This commit is contained in:
		
							parent
							
								
									efb0f6e23b
								
							
						
					
					
						commit
						2438b8b66b
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -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)); | ||||
|         } | ||||
|          | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kegan Dougal
						Kegan Dougal