mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-10-31 08:11:24 +01:00 
			
		
		
		
	Tweak SQL
This commit is contained in:
		
							parent
							
								
									298d83b340
								
							
						
					
					
						commit
						935e588799
					
				| @ -507,9 +507,12 @@ class RoomMemberStore(SQLBaseStore): | ||||
|             raise Exception("Invalid host name") | ||||
| 
 | ||||
|         sql = """ | ||||
|             SELECT state_key FROM current_state_events | ||||
|             INNER JOIN room_memberships USING (room_id, event_id) | ||||
|             WHERE membership = 'join' AND room_id = ? AND state_key LIKE ? | ||||
|             SELECT state_key FROM current_state_events AS c | ||||
|             INNER JOIN room_memberships USING (event_id) | ||||
|             WHERE membership = 'join' | ||||
|                 AND type = 'm.room.member' | ||||
|                 AND c.room_id = ? | ||||
|                 AND state_key LIKE ? | ||||
|             LIMIT 1 | ||||
|         """ | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user