mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-10-31 16:21:56 +01:00 
			
		
		
		
	Remove comment, simplify null-guard
This commit is contained in:
		
							parent
							
								
									77fb2b72ae
								
							
						
					
					
						commit
						122cd52ce4
					
				| @ -40,13 +40,10 @@ class ReadMarkerHandler(BaseHandler): | |||||||
|         the read marker has changed. |         the read marker has changed. | ||||||
|         """ |         """ | ||||||
| 
 | 
 | ||||||
|         # Get ordering for existing read marker |  | ||||||
|         with (yield self.read_marker_linearizer.queue((room_id, user_id))): |         with (yield self.read_marker_linearizer.queue((room_id, user_id))): | ||||||
|             account_data = yield self.store.get_account_data_for_room(user_id, room_id) |             account_data = yield self.store.get_account_data_for_room(user_id, room_id) | ||||||
| 
 | 
 | ||||||
|             existing_read_marker = None |             existing_read_marker = account_data.get("m.read_marker", None) | ||||||
|             if "m.read_marker" in account_data: |  | ||||||
|                 existing_read_marker = account_data["m.read_marker"] |  | ||||||
| 
 | 
 | ||||||
|             should_update = True |             should_update = True | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user