1729ba1650 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4101  from matrix-org/rav/aliases_for_upgrades  
							
							... 
							
							
							
							Attempt to move room aliases on room upgrades 
							
						 
						
							2018-10-31 17:52:18 +00:00  
				
					
						
							
							
								 
						
							
							
								0f8591a5a8 
								
							
								 
							
						 
						
							
							
								
								Avoid else clause on exception for clarity  
							
							
							
						 
						
							2018-10-31 15:43:57 +00:00  
				
					
						
							
							
								 
						
							
							
								94c7fadc98 
								
							
								 
							
						 
						
							
							
								
								Attempt to move room aliases on room upgrades  
							
							
							
						 
						
							2018-10-31 15:43:57 +00:00  
				
					
						
							
							
								 
						
							
							
								9b827c40ca 
								
									
								
							
								 
							
						 
						
							
							
								
								Log some bits about event creation ( #4121 )  
							
							... 
							
							
							
							I found these helpful in debugging my room upgrade tests. 
							
						 
						
							2018-10-31 15:42:23 +00:00  
				
					
						
							
							
								 
						
							
							
								7fbfea062e 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #4100  from matrix-org/rav/room_upgrade_avatar  
							
							... 
							
							
							
							Remember to copy the avatar on room upgrades 
							
						 
						
							2018-10-29 12:49:21 +00:00  
				
					
						
							
							
								 
						
							
							
								db24d7f15e 
								
							
								 
							
						 
						
							
							
								
								Better handling of odd PLs during room upgrades  
							
							... 
							
							
							
							Fixes handling of rooms where we have permission to send the tombstone, but not
other state. We need to (a) fail more gracefully when we can't send the PLs in
the old room, and (b) not set the PLs in the new room until we are done with
the other stuff. 
							
						 
						
							2018-10-27 00:54:26 +01:00  
				
					
						
							
							
								 
						
							
							
								5caf79b312 
								
							
								 
							
						 
						
							
							
								
								Remember to copy the avatar on room upgrades  
							
							
							
						 
						
							2018-10-26 23:56:40 +01:00  
				
					
						
							
							
								 
						
							
							
								54bbe71867 
								
							
								 
							
						 
						
							
							
								
								optimise state copying  
							
							
							
						 
						
							2018-10-26 22:51:34 +01:00  
				
					
						
							
							
								 
						
							
							
								193cadc988 
								
							
								 
							
						 
						
							
							
								
								Address review comments  
							
							... 
							
							
							
							Improve comments, get old room state from the context we already have 
							
						 
						
							2018-10-26 17:10:30 +01:00  
				
					
						
							
							
								 
						
							
							
								e6babc27d5 
								
							
								 
							
						 
						
							
							
								
								restrict PLs in old room  
							
							
							
						 
						
							2018-10-25 19:18:25 +01:00  
				
					
						
							
							
								 
						
							
							
								3a263bf3ae 
								
							
								 
							
						 
						
							
							
								
								copy state  
							
							
							
						 
						
							2018-10-25 19:18:25 +01:00  
				
					
						
							
							
								 
						
							
							
								1b9f253e20 
								
							
								 
							
						 
						
							
							
								
								preserve PLs  
							
							
							
						 
						
							2018-10-25 19:10:24 +01:00  
				
					
						
							
							
								 
						
							
							
								4cda300058 
								
							
								 
							
						 
						
							
							
								
								preserve room visibility  
							
							
							
						 
						
							2018-10-25 19:10:24 +01:00  
				
					
						
							
							
								 
						
							
							
								0f7d1c9906 
								
							
								 
							
						 
						
							
							
								
								Basic initial support for room upgrades  
							
							... 
							
							
							
							Currently just creates a new, empty, room, and sends a tombstone in the old
room. 
							
						 
						
							2018-10-25 19:10:24 +01:00  
				
					
						
							
							
								 
						
							
							
								e1948175ee 
								
							
								 
							
						 
						
							
							
								
								Allow power_level_content_override=None for _send_events_for_new_room  
							
							
							
						 
						
							2018-10-25 19:10:24 +01:00  
				
					
						
							
							
								 
						
							
							
								7f7b2cd3de 
								
							
								 
							
						 
						
							
							
								
								Make room_member_handler a member of RoomCreationHandler  
							
							... 
							
							
							
							... to save passing it into `_send_events_for_new_room` 
							
						 
						
							2018-10-25 19:10:18 +01:00  
				
					
						
							
							
								 
						
							
							
								871c4abfec 
								
							
								 
							
						 
						
							
							
								
								Factor _generate_room_id out of create_room  
							
							... 
							
							
							
							we're going to need this for room upgrades. 
							
						 
						
							2018-10-25 18:23:09 +01:00  
				
					
						
							
							
								 
						
							
							
								cb53ce9d64 
								
									
								
							
								 
							
						 
						
							
							
								
								Refactor state group lookup to reduce DB hits ( #4011 )  
							
							... 
							
							
							
							Currently when fetching state groups from the data store we make two
hits two the database: once for members and once for non-members (unless
request is filtered to one or the other). This adds needless load to the
datbase, so this PR refactors the lookup to make only a single database
hit. 
							
						 
						
							2018-10-25 17:49:55 +01:00  
				
					
						
							
							
								 
						
							
							
								74e7617083 
								
							
								 
							
						 
						
							
							
								
								Clean up room alias creation  
							
							
							
						 
						
							2018-10-19 10:11:56 +01:00  
				
					
						
							
							
								 
						
							
							
								372bf073c1 
								
							
								 
							
						 
						
							
							
								
								block event creation and room creation on hitting resource limits  
							
							
							
						 
						
							2018-08-16 21:25:16 +01:00  
				
					
						
							
							
								 
						
							
							
								3523f5432a 
								
							
								 
							
						 
						
							
							
								
								Don't expose default_room_version as config opt  
							
							
							
						 
						
							2018-08-07 12:51:57 +01:00  
				
					
						
							
							
								 
						
							
							
								0ca459ea33 
								
							
								 
							
						 
						
							
							
								
								Basic support for room versioning  
							
							... 
							
							
							
							This is the first tranche of support for room versioning. It includes:
 * setting the default room version in the config file
 * new room_version param on the createRoom API
 * storing the version of newly-created rooms in the m.room.create event
 * fishing the version of existing rooms out of the m.room.create event 
							
						 
						
							2018-08-03 16:08:32 +01:00  
				
					
						
							
							
								 
						
							
							
								e9b2d047f6 
								
									
								
							
								 
							
						 
						
							
							
								
								make /context lazyload & filter aware ( #3567 )  
							
							... 
							
							
							
							make /context lazyload & filter aware. 
							
						 
						
							2018-07-27 15:12:50 +01:00  
				
					
						
							
							
								 
						
							
							
								8b8c4f34a3 
								
							
								 
							
						 
						
							
							
								
								Replace usage of get_current_toke with StreamToken.START  
							
							... 
							
							
							
							This allows us to handle /context/ requests on the client_reader worker
without having to pull in all the various stream handlers (e.g.
precence, typing, pushers etc). The only thing the token gets used for
is pagination, and that ignores everything but the room portion of the
token. 
							
						 
						
							2018-07-24 16:49:17 +01:00  
				
					
						
							
							
								 
						
							
							
								bacdf0cbf9 
								
							
								 
							
						 
						
							
							
								
								Move RoomContextHandler out of Handlers  
							
							... 
							
							
							
							This is in preparation for moving GET /context/ to a worker 
							
						 
						
							2018-07-18 15:33:03 +01:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								19cd3120ec 
								
							
								 
							
						 
						
							
							
								
								Add error code to room creation error  
							
							... 
							
							
							
							This error code is mentioned in the documentation at https://matrix.org/docs/api/client-server/#!/Room32creation/createRoom  
							
						 
						
							2018-06-14 14:08:40 +02:00  
				
					
						
							
							
								 
						
							
							
								c936a52a9e 
								
									
								
							
								 
							
						 
						
							
							
								
								Consistently use six's iteritems and wrap lazy keys/values in list() if they're not meant to be lazy ( #3307 )  
							
							
							
						 
						
							2018-05-31 19:03:47 +10:00  
				
					
						
							
							
								 
						
							
							
								a5e2941aad 
								
							
								 
							
						 
						
							
							
								
								Reject attempts to send event before privacy consent is given  
							
							... 
							
							
							
							Returns an M_CONSENT_NOT_GIVEN error (cf
https://github.com/matrix-org/matrix-doc/issues/1252 ) if consent is not yet
given. 
							
						 
						
							2018-05-22 12:00:47 +01:00  
				
					
						
							
							
								 
						
							
							
								fed62e21ad 
								
							
								 
							
						 
						
							
							
								
								Infrastructure for a server notices room  
							
							... 
							
							
							
							Server Notices use a special room which the user can't dismiss. They are
created on demand when some other bit of the code calls send_notice.
(This doesn't actually do much yet becuse we don't call send_notice anywhere) 
							
						 
						
							2018-05-17 17:58:25 +01:00  
				
					
						
							
							
								 
						
							
							
								c46367d0d7 
								
							
								 
							
						 
						
							
							
								
								Move RoomCreationHandler out of synapse.handlers.Handlers  
							
							... 
							
							
							
							Handlers is deprecated nowadays, so let's move this out before I add a new
dependency on it.
Also fix the docstrings on create_room. 
							
						 
						
							2018-05-17 09:08:42 +01:00  
				
					
						
							
							
								 
						
							
							
								d4ffe61d4f 
								
							
								 
							
						 
						
							
							
								
								Remove ability for AS users to call /events and /sync  
							
							... 
							
							
							
							This functionality has been deprecated for a while as well as being
broken for a while. Instead of fixing it lets just remove it entirely.
See: https://github.com/matrix-org/matrix-doc/issues/1144  
							
						 
						
							2018-03-05 15:44:46 +00:00  
				
					
						
							
							
								 
						
							
							
								784f036306 
								
							
								 
							
						 
						
							
							
								
								Move RoomMemberHandler out of Handlers  
							
							
							
						 
						
							2018-03-01 14:36:50 +00:00  
				
					
						
							
							
								 
						
							
							
								3e1e69ccaf 
								
							
								 
							
						 
						
							
							
								
								Update copyright  
							
							
							
						 
						
							2018-02-06 16:40:38 +00:00  
				
					
						
							
							
								 
						
							
							
								3fa362502c 
								
							
								 
							
						 
						
							
							
								
								Update places where we create events  
							
							
							
						 
						
							2018-02-05 16:01:48 +00:00  
				
					
						
							
							
								 
						
							
							
								dfbc45302e 
								
									
								
							
								 
							
						 
						
							
							
								
								PEP8  
							
							
							
						 
						
							2017-11-28 15:23:26 +00:00  
				
					
						
							
							
								 
						
							
							
								c4c1d170af 
								
									
								
							
								 
							
						 
						
							
							
								
								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 
							
						 
						
							2017-11-28 15:19:15 +00:00  
				
					
						
							
							
								 
						
							
							
								eaaabc6c4f 
								
							
								 
							
						 
						
							
							
								
								replace 'except:' with 'except Exception:'  
							
							... 
							
							
							
							what could possibly go wrong 
							
						 
						
							2017-10-23 15:52:32 +01:00  
				
					
						
							
							
								 
						
							
							
								631d7b87b5 
								
							
								 
							
						 
						
							
							
								
								Remove pointless create() method  
							
							... 
							
							
							
							It just calls the constructor, so we may as well kill it rather than having
random codepaths. 
							
						 
						
							2017-10-20 22:14:55 +01:00  
				
					
						
							
							
								 
						
							
							
								78d4ced829 
								
							
								 
							
						 
						
							
							
								
								un-double indent  
							
							
							
						 
						
							2017-10-04 12:44:27 +01:00  
				
					
						
							
							
								 
						
							
							
								197c14dbcf 
								
							
								 
							
						 
						
							
							
								
								Add room creation checks to spam checker  
							
							... 
							
							
							
							Lets the spam checker deny attempts to create rooms and add aliases
to them. 
							
						 
						
							2017-10-04 10:47:54 +01:00  
				
					
						
							
							
								 
						
							
							
								b490299a3b 
								
							
								 
							
						 
						
							
							
								
								Change to create new room and join other users  
							
							
							
						 
						
							2017-06-19 14:10:13 +01:00  
				
					
						
							
							
								 
						
							
							
								b990b2fce5 
								
							
								 
							
						 
						
							
							
								
								Add per user ratelimiting overrides  
							
							
							
						 
						
							2017-05-10 11:05:43 +01:00  
				
					
						
							
							
								 
						
							
							
								17673404fb 
								
							
								 
							
						 
						
							
							
								
								Remove unused param  
							
							
							
						 
						
							2017-02-20 15:02:01 +00:00  
				
					
						
							
							
								 
						
							
							
								7f026792e1 
								
							
								 
							
						 
						
							
							
								
								Fix /context/ visibiltiy rules  
							
							
							
						 
						
							2017-02-20 14:54:50 +00:00  
				
					
						
							
							
								 
						
							
							
								54a79c1d37 
								
							
								 
							
						 
						
							
							
								
								Make presence.get_new_events a bit faster  
							
							... 
							
							
							
							We do this by caching the set of users a user shares rooms with. 
							
						 
						
							2017-02-02 13:07:18 +00:00  
				
					
						
							
							
								 
						
							
							
								9609c91e7d 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #653  from matrix-org/erikj/preset_guest_join  
							
							... 
							
							
							
							Enable guest access for private rooms by default 
							
						 
						
							2016-12-05 17:47:14 +00:00  
				
					
						
							
							
								 
						
							
							
								d04e2ff3a4 
								
							
								 
							
						 
						
							
							
								
								Fix incredubly slow back pagination query  
							
							... 
							
							
							
							If a client didn't specify a from token when paginating backwards
synapse would attempt to query the (global) maximum topological token.
This a) doesn't make much sense since they're room specific and b) there
are no indices that lets postgres do this efficiently. 
							
						 
						
							2016-10-24 13:35:51 +01:00  
				
					
						
							
							
								 
						
							
							
								9bfc617791 
								
							
								 
							
						 
						
							
							
								
								storage/appservice: make appservice methods only relying on the cache synchronous  
							
							
							
						 
						
							2016-10-06 15:24:59 +02:00  
				
					
						
							
							
								 
						
							
							
								a70a43bc51 
								
							
								 
							
						 
						
							
							
								
								Move RoomListHandler into a separate file  
							
							
							
						 
						
							2016-09-14 14:07:37 +01:00