mirror of
				https://github.com/element-hq/synapse.git
				synced 2025-11-04 00:01:22 -05:00 
			
		
		
		
	Set a state_key for the topic and room name, otherwise they won't be treated as room state
This commit is contained in:
		
							parent
							
								
									9c71d945d6
								
							
						
					
					
						commit
						efd27ff01b
					
				@ -130,6 +130,7 @@ class RoomCreationHandler(BaseHandler):
 | 
			
		||||
                "type": EventTypes.Name,
 | 
			
		||||
                "room_id": room_id,
 | 
			
		||||
                "sender": user_id,
 | 
			
		||||
                "state_key": "",
 | 
			
		||||
                "content": {"name": name},
 | 
			
		||||
            })
 | 
			
		||||
 | 
			
		||||
@ -139,6 +140,7 @@ class RoomCreationHandler(BaseHandler):
 | 
			
		||||
                "type": EventTypes.Topic,
 | 
			
		||||
                "room_id": room_id,
 | 
			
		||||
                "sender": user_id,
 | 
			
		||||
                "state_key": "",
 | 
			
		||||
                "content": {"topic": topic},
 | 
			
		||||
            })
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user