c802ef1411 
								
									
								
							
								 
							
						 
						
							
							
								
								Don't include redundant prev_state in new events ( #13791 )  
							
							
							
						 
						
							2022-09-20 09:44:38 +01:00  
				
					
						
							
							
								 
						
							
							
								c2fe48a6ff 
								
									
								
							
								 
							
						 
						
							
							
								
								Rename the `EventFormatVersions` enum values so that they line up with room version numbers. ( #13706 )  
							
							
							
						 
						
							2022-09-07 11:08:20 +01:00  
				
					
						
							
							
								 
						
							
							
								c6a05063ff 
								
									
								
							
								 
							
						 
						
							
							
								
								Don't pull out the full state when creating an event ( #13281 )  
							
							
							
						 
						
							2022-07-18 10:05:30 +01:00  
				
					
						
							
							
								 
						
							
							
								7281591f4c 
								
									
								
							
								 
							
						 
						
							
							
								
								Use state before join to determine if we `_should_perform_remote_join` ( #13270 )  
							
							... 
							
							
							
							Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> 
							
						 
						
							2022-07-15 12:20:47 +00:00  
				
					
						
							
							
								 
						
							
							
								e0bb268134 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix typechecker problems exposed by signedjson 1.1.2 ( #12326 )  
							
							
							
						 
						
							2022-03-29 21:37:50 +00:00  
				
					
						
							
							
								 
						
							
							
								e24ff8ebe3 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove `HomeServer.get_datastore()` ( #12031 )  
							
							... 
							
							
							
							The presence of this method was confusing, and mostly present for backwards
compatibility. Let's get rid of it.
Part of #11733  
							
						 
						
							2022-02-23 11:04:02 +00:00  
				
					
						
							
							
								 
						
							
							
								6a605f4a77 
								
									
								
							
								 
							
						 
						
							
							
								
								Get db signatures file to pass mypy ( #11312 )  
							
							
							
						 
						
							2021-11-11 17:04:44 +00:00  
				
					
						
							
							
								 
						
							
							
								1f9d0b8a7a 
								
									
								
							
								 
							
						 
						
							
							
								
								Add type hints to synapse.events.*. ( #11066 )  
							
							... 
							
							
							
							Except `synapse/events/__init__.py`, which will be done in a follow-up. 
							
						 
						
							2021-10-13 07:24:07 -04:00  
				
					
						
							
							
								 
						
							
							
								5279b9161b 
								
									
								
							
								 
							
						 
						
							
							
								
								Use `RoomVersion` objects ( #10934 )  
							
							... 
							
							
							
							Various refactors to use `RoomVersion` objects instead of room version identifiers. 
							
						 
						
							2021-09-29 10:57:10 +01:00  
				
					
						
							
							
								 
						
							
							
								bf72d10dbf 
								
									
								
							
								 
							
						 
						
							
							
								
								Use inline type hints in various other places (in `synapse/`) ( #10380 )  
							
							
							
						 
						
							2021-07-15 11:02:43 +01:00  
				
					
						
							
							
								 
						
							
							
								8d609435c0 
								
									
								
							
								 
							
						 
						
							
							
								
								Move methods involving event authentication to EventAuthHandler. ( #10268 )  
							
							... 
							
							
							
							Instead of mixing them with user authentication methods. 
							
						 
						
							2021-07-01 14:25:37 -04:00  
				
					
						
							
							
								 
						
							
							
								aaf7d1acb8 
								
									
								
							
								 
							
						 
						
							
							
								
								Correct type hints for synapse.event_auth. ( #10253 )  
							
							
							
						 
						
							2021-06-30 07:08:42 -04:00  
				
					
						
							
							
								 
						
							
							
								96f6293de5 
								
									
								
							
								 
							
						 
						
							
							
								
								Add endpoints for backfilling history (MSC2716) ( #9247 )  
							
							... 
							
							
							
							Work on https://github.com/matrix-org/matrix-doc/pull/2716  
							
						 
						
							2021-06-22 10:02:53 +01:00  
				
					
						
							
							
								 
						
							
							
								4b965c862d 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove redundant "coding: utf-8" lines ( #9786 )  
							
							... 
							
							
							
							Part of #9744 
Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now.
`Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` 
							
						 
						
							2021-04-14 15:34:27 +01:00  
				
					
						
							
							
								 
						
							
							
								0a00b7ff14 
								
									
								
							
								 
							
						 
						
							
							
								
								Update black, and run auto formatting over the codebase ( #9381 )  
							
							... 
							
							
							
							- Update black version to the latest
 - Run black auto formatting over the codebase
    - Run autoformatting according to [`docs/code_style.md
`](80d6dc9783/docs/code_style.md 
							
						 
						
							2021-02-16 22:32:34 +00:00  
				
					
						
							
							
								 
						
							
							
								da0090fdff 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix modifying events in `ThirdPartyRules` modules ( #8564 )  
							
							... 
							
							
							
							EventBuilder.build wants auth events these days 
							
						 
						
							2020-10-16 13:39:46 +01:00  
				
					
						
							
							
								 
						
							
							
								a34b17e492 
								
							
								 
							
						 
						
							
							
								
								Simplify `_locally_reject_invite`  
							
							... 
							
							
							
							Update `EventCreationHandler.create_event` to accept an auth_events param, and
use it in `_locally_reject_invite` instead of reinventing the wheel. 
							
						 
						
							2020-10-13 23:58:48 +01:00  
				
					
						
							
							
								 
						
							
							
								c619253db8 
								
									
								
							
								 
							
						 
						
							
							
								
								Stop sub-classing object ( #8249 )  
							
							
							
						 
						
							2020-09-04 06:54:56 -04:00  
				
					
						
							
							
								 
						
							
							
								da77520cd1 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert additional databases to async/await part 2 ( #8200 )  
							
							
							
						 
						
							2020-09-01 08:39:04 -04:00  
				
					
						
							
							
								 
						
							
							
								5dd73d029e 
								
									
								
							
								 
							
						 
						
							
							
								
								Add type hints to handlers.message and events.builder ( #8067 )  
							
							
							
						 
						
							2020-08-12 15:05:50 +01:00  
				
					
						
							
							
								 
						
							
							
								d4a7829b12 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert synapse.api to async/await ( #8031 )  
							
							
							
						 
						
							2020-08-06 08:30:06 -04:00  
				
					
						
							
							
								 
						
							
							
								8553f46498 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert a synapse.events to async/await. ( #7949 )  
							
							
							
						 
						
							2020-07-27 13:40:22 -04:00  
				
					
						
							
							
								 
						
							
							
								b975fa2e99 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert state resolution to async/await ( #7942 )  
							
							
							
						 
						
							2020-07-24 10:59:51 -04:00  
				
					
						
							
							
								 
						
							
							
								67593b1728 
								
									
								
							
								 
							
						 
						
							
							
								
								Add `HomeServer.signing_key` property ( #7805 )  
							
							... 
							
							
							
							... instead of duplicating `config.signing_key[0]` everywhere 
							
						 
						
							2020-07-08 17:51:56 +01:00  
				
					
						
							
							
								 
						
							
							
								799001f2c0 
								
									
								
							
								 
							
						 
						
							
							
								
								Add a `make_event_from_dict` method ( #6858 )  
							
							... 
							
							
							
							... and use it in places where it's trivial to do so.
This will make it easier to pass room versions into the FrozenEvent
constructors. 
							
						 
						
							2020-02-07 15:30:04 +00:00  
				
					
						
							
							
								 
						
							
							
								2a81393a4b 
								
							
								 
							
						 
						
							
							
								
								Pass room_version into add_hashes_and_signatures  
							
							
							
						 
						
							2020-01-30 22:15:50 +00:00  
				
					
						
							
							
								 
						
							
							
								54f3f369bd 
								
							
								 
							
						 
						
							
							
								
								Pass room_version into create_local_event_from_event_dict  
							
							
							
						 
						
							2020-01-30 22:15:50 +00:00  
				
					
						
							
							
								 
						
							
							
								ef6bdafb29 
								
							
								 
							
						 
						
							
							
								
								Store the room version in EventBuilder  
							
							
							
						 
						
							2020-01-30 22:15:50 +00:00  
				
					
						
							
							
								 
						
							
							
								4806651744 
								
									
								
							
								 
							
						 
						
							
							
								
								Replace returnValue with return ( #5736 )  
							
							
							
						 
						
							2019-07-23 23:00:55 +10:00  
				
					
						
							
							
								 
						
							
							
								32e7c9e7f2 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black. ( #5482 )  
							
							
							
						 
						
							2019-06-20 19:32:02 +10:00  
				
					
						
							
							
								 
						
							
							
								dd64b9dbdd 
								
							
								 
							
						 
						
							
							
								
								Fix appservice timestamp massaging ( #5233 )  
							
							... 
							
							
							
							Signed-off-by: Tulir Asokan <tulir@maunium.net> 
							
						 
						
							2019-05-24 14:44:04 +01:00  
				
					
						
							
							
								 
						
							
							
								04d53794d6 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix error handling for rooms whose versions are unknown. ( #5219 )  
							
							... 
							
							
							
							If we remove support for a particular room version, we should behave more
gracefully. This should make client requests fail with a 400 rather than a 500,
and will ignore individiual PDUs in a federation transaction, rather than the
whole transaction. 
							
						 
						
							2019-05-21 13:47:25 +01:00  
				
					
						
							
							
								 
						
							
							
								54a87a7b08 
								
									
								
							
								 
							
						 
						
							
							
								
								Collect room-version variations into one place ( #4969 )  
							
							... 
							
							
							
							Collect all the things that make room-versions different to one another into
one place, so that it's easier to define new room versions. 
							
						 
						
							2019-04-01 10:24:38 +01:00  
				
					
						
							
							
								 
						
							
							
								84af577356 
								
							
								 
							
						 
						
							
							
								
								Implement event format v2  
							
							
							
						 
						
							2019-01-29 18:06:11 +00:00  
				
					
						
							
							
								 
						
							
							
								fb99dae9c8 
								
							
								 
							
						 
						
							
							
								
								Don't set event_id twice  
							
							
							
						 
						
							2019-01-29 12:08:23 +00:00  
				
					
						
							
							
								 
						
							
							
								be47cfa9c9 
								
							
								 
							
						 
						
							
							
								
								Refactor event building into EventBuilder  
							
							... 
							
							
							
							This is so that everything is done in one place, making it easier to
change the event format based on room version 
							
						 
						
							2019-01-29 11:13:00 +00:00  
				
					
						
							
							
								 
						
							
							
								a50cf929c1 
								
							
								 
							
						 
						
							
							
								
								Require event format version to parse or create events  
							
							
							
						 
						
							2019-01-25 10:32:19 +00:00  
				
					
						
							
							
								 
						
							
							
								be6a7e47fa 
								
									
								
							
								 
							
						 
						
							
							
								
								Revert "Require event format version to parse or create events"  
							
							
							
						 
						
							2019-01-25 10:23:51 +00:00  
				
					
						
							
							
								 
						
							
							
								f431ff3fb8 
								
							
								 
							
						 
						
							
							
								
								Require event format version to parse or create events  
							
							
							
						 
						
							2019-01-23 20:21:33 +00:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10: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  
				
					
						
							
							
								 
						
							
							
								5d6bad1b3c 
								
							
								 
							
						 
						
							
							
								
								Optimise state resolution  
							
							
							
						 
						
							2017-01-17 13:22:19 +00:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								c1c7b39827 
								
							
								 
							
						 
						
							
							
								
								Fix bug where we changes in outlier in metadata dict propogated to other events  
							
							
							
						 
						
							2015-01-30 10:30:54 +00:00  
				
					
						
							
							
								 
						
							
							
								3891597eb3 
								
							
								 
							
						 
						
							
							
								
								Remove unused functions  
							
							
							
						 
						
							2015-01-13 15:57:26 +00:00  
				
					
						
							
							
								 
						
							
							
								adb04b1e57 
								
							
								 
							
						 
						
							
							
								
								Update copyright notices  
							
							
							
						 
						
							2015-01-06 13:21:39 +00:00  
				
					
						
							
							
								 
						
							
							
								8cdebce470 
								
							
								 
							
						 
						
							
							
								
								Fix redactions. Fix 'age' key  
							
							
							
						 
						
							2014-12-11 13:25:19 +00:00  
				
					
						
							
							
								 
						
							
							
								95aa903ffa 
								
							
								 
							
						 
						
							
							
								
								Try and figure out how and why signatures are being changed.  
							
							
							
						 
						
							2014-12-10 11:37:47 +00:00  
				
					
						
							
							
								 
						
							
							
								8c48450682 
								
							
								 
							
						 
						
							
							
								
								Add PEP8 newlines  
							
							
							
						 
						
							2014-12-09 10:58:31 +00:00  
				
					
						
							
							
								 
						
							
							
								c31dba86ec 
								
							
								 
							
						 
						
							
							
								
								Convert rest and handlers to use new event structure  
							
							
							
						 
						
							2014-12-04 15:50:01 +00:00