9e696bd6a3 
								
							
								 
							
						 
						
							
							
								
								Remove superfluous call to get_state_at when we already have an event for that stream position  
							
							
							
						 
						
							2016-02-22 13:54:46 +00:00  
				
					
						
							
							
								 
						
							
							
								3dbaeef58c 
								
							
								 
							
						 
						
							
							
								
								Correctly filter states  
							
							
							
						 
						
							2016-02-19 12:27:35 +00:00  
				
					
						
							
							
								 
						
							
							
								42ac5f0c1a 
								
							
								 
							
						 
						
							
							
								
								Only send presence updates to remote hosts if user is ours  
							
							
							
						 
						
							2016-02-19 12:19:56 +00:00  
				
					
						
							
							
								 
						
							
							
								24d9f2c140 
								
							
								 
							
						 
						
							
							
								
								Add Measures to presence  
							
							
							
						 
						
							2016-02-19 11:50:48 +00:00  
				
					
						
							
							
								 
						
							
							
								4a95eb0a12 
								
							
								 
							
						 
						
							
							
								
								Add presence metric  
							
							
							
						 
						
							2016-02-19 11:32:04 +00:00  
				
					
						
							
							
								 
						
							
							
								be799453aa 
								
							
								 
							
						 
						
							
							
								
								Remove spurious extra metrics  
							
							
							
						 
						
							2016-02-19 11:29:33 +00:00  
				
					
						
							
							
								 
						
							
							
								ea7786e8ca 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #586  from matrix-org/erikj/presence  
							
							... 
							
							
							
							Fix presence `currently_active`. Add presence metrics. 
							
						 
						
							2016-02-19 11:26:32 +00:00  
				
					
						
							
							
								 
						
							
							
								929cb0ed7d 
								
							
								 
							
						 
						
							
							
								
								Don't set currently_active for remote presence  
							
							
							
						 
						
							2016-02-19 10:58:27 +00:00  
				
					
						
							
							
								 
						
							
							
								5f4eca3816 
								
							
								 
							
						 
						
							
							
								
								More metrics  
							
							
							
						 
						
							2016-02-19 10:21:41 +00:00  
				
					
						
							
							
								 
						
							
							
								5614b4dafb 
								
							
								 
							
						 
						
							
							
								
								Add presence metrics  
							
							
							
						 
						
							2016-02-19 09:50:54 +00:00  
				
					
						
							
							
								 
						
							
							
								e5ad2e5267 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #582  from matrix-org/erikj/presence  
							
							... 
							
							
							
							Rewrite presence for performance. 
							
						 
						
							2016-02-19 09:37:50 +00:00  
				
					
						
							
							
								 
						
							
							
								220231d8e3 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #573  from matrix-org/erikj/sync_fix  
							
							... 
							
							
							
							Mitigate against incorrect old state in /sync. 
							
						 
						
							2016-02-18 16:40:58 +00:00  
				
					
						
							
							
								 
						
							
							
								48b652bcbe 
								
							
								 
							
						 
						
							
							
								
								Remove invalid arg.  
							
							
							
						 
						
							2016-02-18 14:57:09 +00:00  
				
					
						
							
							
								 
						
							
							
								b4796a62ee 
								
							
								 
							
						 
						
							
							
								
								Add unit test  
							
							
							
						 
						
							2016-02-18 11:52:33 +00:00  
				
					
						
							
							
								 
						
							
							
								f8d21e1431 
								
							
								 
							
						 
						
							
							
								
								Review comments  
							
							
							
						 
						
							2016-02-18 11:02:14 +00:00  
				
					
						
							
							
								 
						
							
							
								fe95f2217c 
								
							
								 
							
						 
						
							
							
								
								Add stuff pulled from the DB to the cache  
							
							
							
						 
						
							2016-02-18 10:26:24 +00:00  
				
					
						
							
							
								 
						
							
							
								8351538873 
								
							
								 
							
						 
						
							
							
								
								PEP8  
							
							
							
						 
						
							2016-02-18 10:12:12 +00:00  
				
					
						
							
							
								 
						
							
							
								112283e230 
								
							
								 
							
						 
						
							
							
								
								Prefix TS fields with _ts  
							
							
							
						 
						
							2016-02-18 10:11:43 +00:00  
				
					
						
							
							
								 
						
							
							
								b31ec214a5 
								
							
								 
							
						 
						
							
							
								
								Remove status_msg when going offline. Don't offline -> online if you send a message  
							
							
							
						 
						
							2016-02-18 09:54:08 +00:00  
				
					
						
							
							
								 
						
							
							
								114b929f8b 
								
							
								 
							
						 
						
							
							
								
								Check presence state is a valid one  
							
							
							
						 
						
							2016-02-18 09:16:32 +00:00  
				
					
						
							
							
								 
						
							
							
								ddca9c56fc 
								
							
								 
							
						 
						
							
							
								
								Move if statement  
							
							
							
						 
						
							2016-02-18 09:11:53 +00:00  
				
					
						
							
							
								 
						
							
							
								58371fa263 
								
							
								 
							
						 
						
							
							
								
								Comment  
							
							
							
						 
						
							2016-02-18 09:09:50 +00:00  
				
					
						
							
							
								 
						
							
							
								591af2d074 
								
							
								 
							
						 
						
							
							
								
								Some cleanup  
							
							... 
							
							
							
							I'm not particularly happy with the "action" switching, but there's no
convenient way to defer the work that needs to happen after it, so... :( 
							
						 
						
							2016-02-17 15:50:13 +00:00  
				
					
						
							
							
								 
						
							
							
								c229c87398 
								
							
								 
							
						 
						
							
							
								
								Remove spurious comment  
							
							
							
						 
						
							2016-02-17 15:48:29 +00:00  
				
					
						
							
							
								 
						
							
							
								e5999bfb1a 
								
							
								 
							
						 
						
							
							
								
								Initial cut  
							
							
							
						 
						
							2016-02-17 15:40:50 +00:00  
				
					
						
							
							
								 
						
							
							
								a4e278bfe7 
								
							
								 
							
						 
						
							
							
								
								Respond to federated invite with non-empty context  
							
							... 
							
							
							
							Currently, we magically perform an extra database hit to find the
inviter, and use this to guess where we should send the event. Instead,
fill in a valid context, so that other callers relying on the context
actually have one. 
							
						 
						
							2016-02-17 15:25:12 +00:00  
				
					
						
							
							
								 
						
							
							
								6605adf669 
								
							
								 
							
						 
						
							
							
								
								Some cleanup, some TODOs, more to do  
							
							
							
						 
						
							2016-02-16 19:05:02 +00:00  
				
					
						
							
							
								 
						
							
							
								d1fb790818 
								
							
								 
							
						 
						
							
							
								
								Some cleanup  
							
							
							
						 
						
							2016-02-16 14:25:23 +00:00  
				
					
						
							
							
								 
						
							
							
								1f403325ac 
								
							
								 
							
						 
						
							
							
								
								Tidy? up room creation event sending  
							
							
							
						 
						
							2016-02-16 12:00:50 +00:00  
				
					
						
							
							
								 
						
							
							
								04686df17a 
								
							
								 
							
						 
						
							
							
								
								Add comment  
							
							
							
						 
						
							2016-02-16 11:52:46 +00:00  
				
					
						
							
							
								 
						
							
							
								feedaa37fa 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into daniel/roomcleanupincremental  
							
							... 
							
							
							
							Conflicts:
	synapse/handlers/room.py 
							
						 
						
							2016-02-16 11:34:48 +00:00  
				
					
						
							
							
								 
						
							
							
								4bfb32f685 
								
							
								 
							
						 
						
							
							
								
								Branch off member and non member sends  
							
							... 
							
							
							
							Unclean, needs tidy-up, but works 
							
						 
						
							2016-02-15 18:21:30 +00:00  
				
					
						
							
							
								 
						
							
							
								1a2197d7bf 
								
							
								 
							
						 
						
							
							
								
								Simplify room creation code  
							
							
							
						 
						
							2016-02-15 18:19:01 +00:00  
				
					
						
							
							
								 
						
							
							
								e560045cfd 
								
							
								 
							
						 
						
							
							
								
								Simplify room creation code  
							
							
							
						 
						
							2016-02-15 18:18:39 +00:00  
				
					
						
							
							
								 
						
							
							
								8168341e9b 
								
							
								 
							
						 
						
							
							
								
								Use update_membership for profile updates  
							
							
							
						 
						
							2016-02-15 17:14:34 +00:00  
				
					
						
							
							
								 
						
							
							
								1bbb67c452 
								
							
								 
							
						 
						
							
							
								
								Use update_membership to kick guests  
							
							
							
						 
						
							2016-02-15 16:40:22 +00:00  
				
					
						
							
							
								 
						
							
							
								150fcde0dc 
								
							
								 
							
						 
						
							
							
								
								Reuse update_membership from /join  
							
							
							
						 
						
							2016-02-15 16:16:03 +00:00  
				
					
						
							
							
								 
						
							
							
								73e616df2a 
								
							
								 
							
						 
						
							
							
								
								Inline _do_local_membership_update  
							
							
							
						 
						
							2016-02-15 16:02:22 +00:00  
				
					
						
							
							
								 
						
							
							
								f318d4f2a4 
								
							
								 
							
						 
						
							
							
								
								Inline _do_join as it now only has one caller  
							
							... 
							
							
							
							Also, consistently apply rate limiting.
Again, ugly, but a step in the right direction. 
							
						 
						
							2016-02-15 15:57:10 +00:00  
				
					
						
							
							
								 
						
							
							
								e71095801f 
								
							
								 
							
						 
						
							
							
								
								Merge implementation of /join by alias or ID  
							
							... 
							
							
							
							This code is kind of rough (passing the remote servers down a long
chain), but is a step towards improvement. 
							
						 
						
							2016-02-15 15:39:16 +00:00  
				
					
						
							
							
								 
						
							
							
								dbeed36dec 
								
							
								 
							
						 
						
							
							
								
								Merge some room joining codepaths  
							
							... 
							
							
							
							Force joining by alias to go through the send_membership_event checks,
rather than bypassing them straight into _do_join. This is the first of
many stages of cleanup. 
							
						 
						
							2016-02-15 14:38:27 +00:00  
				
					
						
							
							
								 
						
							
							
								4de08a4672 
								
							
								 
							
						 
						
							
							
								
								Revert "Merge two of the room join codepaths"  
							
							... 
							
							
							
							This reverts commit cf81375b94 
							
						 
						
							2016-02-12 16:17:24 +00:00  
				
					
						
							
							
								 
						
							
							
								cf81375b94 
								
							
								 
							
						 
						
							
							
								
								Merge two of the room join codepaths  
							
							... 
							
							
							
							There's at least one more to merge in.
Side-effects:
 * Stop reporting None as displayname and avatar_url in some cases
 * Joining a room by alias populates guest-ness in join event
 * Remove unspec'd PUT version of /join/<room_id_or_alias> which has not
   been called on matrix.org according to logs
 * Stop recording access_token_id on /join/room_id - currently we don't
   record it on /join/room_alias; I can try to thread it through at some
   point. 
							
						 
						
							2016-02-12 15:11:49 +00:00  
				
					
						
							
							
								 
						
							
							
								4d54d87c3e 
								
							
								 
							
						 
						
							
							
								
								Mitigate against incorrect old state in /sync.  
							
							... 
							
							
							
							There have been reports from the field that servers occasionally have
incorrect notions of what the old state of a room is. This proves
problematic as /sync relies on a correct old state.
This patch makes /sync specifically include in the 'state' key any
current state events that haven't been correctly included. 
							
						 
						
							2016-02-12 11:13:06 +00:00  
				
					
						
							
							
								 
						
							
							
								dc6da63e30 
								
							
								 
							
						 
						
							
							
								
								Enforce user_id exclusivity for AS registrations  
							
							... 
							
							
							
							This whole set of checks is kind of an ugly mess, which I may clean up
at some point, but for now let's be correct. 
							
						 
						
							2016-02-11 17:37:38 +00:00  
				
					
						
							
							
								 
						
							
							
								0eff740523 
								
							
								 
							
						 
						
							
							
								
								Return events in correct order for /events  
							
							
							
						 
						
							2016-02-11 10:07:27 +00:00  
				
					
						
							
							
								 
						
							
							
								24f00a6c33 
								
							
								 
							
						 
						
							
							
								
								Use _simple_select_many for _get_state_group_for_events  
							
							
							
						 
						
							2016-02-10 12:57:50 +00:00  
				
					
						
							
							
								 
						
							
							
								8e49892b21 
								
							
								 
							
						 
						
							
							
								
								Only calculate initial sync for 10 rooms at a time  
							
							... 
							
							
							
							This helps to ensure we don't completely starve other requests. 
							
						 
						
							2016-02-10 11:42:07 +00:00  
				
					
						
							
							
								 
						
							
							
								7b0d846407 
								
							
								 
							
						 
						
							
							
								
								Atomically persit push actions when we persist the event  
							
							
							
						 
						
							2016-02-09 16:19:15 +00:00  
				
					
						
							
							
								 
						
							
							
								f28cc45183 
								
							
								 
							
						 
						
							
							
								
								Pass in current state to push action handler  
							
							
							
						 
						
							2016-02-09 16:01:40 +00:00