mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-11-04 02:01:03 +01:00 
			
		
		
		
	Fix wrong avatars when inviting multiple users when creating room
We reused the `content` dictionary between invite requests, which meant they could end up reusing the profile info for a previous user
This commit is contained in:
		
							parent
							
								
									b102e93571
								
							
						
					
					
						commit
						c4c1d170af
					
				@ -205,12 +205,12 @@ class RoomCreationHandler(BaseHandler):
 | 
				
			|||||||
                },
 | 
					                },
 | 
				
			||||||
                ratelimit=False)
 | 
					                ratelimit=False)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        content = {}
 | 
					 | 
				
			||||||
        is_direct = config.get("is_direct", None)
 | 
					 | 
				
			||||||
        if is_direct:
 | 
					 | 
				
			||||||
            content["is_direct"] = is_direct
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        for invitee in invite_list:
 | 
					        for invitee in invite_list:
 | 
				
			||||||
 | 
					            content = {}
 | 
				
			||||||
 | 
					            is_direct = config.get("is_direct", None)
 | 
				
			||||||
 | 
					            if is_direct:
 | 
				
			||||||
 | 
					                content["is_direct"] = is_direct
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
            yield room_member_handler.update_membership(
 | 
					            yield room_member_handler.update_membership(
 | 
				
			||||||
                requester,
 | 
					                requester,
 | 
				
			||||||
                UserID.from_string(invitee),
 | 
					                UserID.from_string(invitee),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user