f31f8e6319 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove stream ordering from Metadata dict ( #8452 )  
							
							... 
							
							
							
							There's no need for it to be in the dict as well as the events table. Instead,
we store it in a separate attribute in the EventInternalMetadata object, and
populate that on load.
This means that we can rely on it being correctly populated for any event which
has been persited to the database. 
							
						 
						
							2020-10-05 14:43:14 +01:00  
				
					
						
							
							
								 
						
							
							
								c619253db8 
								
									
								
							
								 
							
						 
						
							
							
								
								Stop sub-classing object ( #8249 )  
							
							
							
						 
						
							2020-09-04 06:54:56 -04:00  
				
					
						
							
							
								 
						
							
							
								8553f46498 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert a synapse.events to async/await. ( #7949 )  
							
							
							
						 
						
							2020-07-27 13:40:22 -04:00  
				
					
						
							
							
								 
						
							
							
								a7b06a81f0 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix deprecation warning: import ABC from collections.abc ( #7892 )  
							
							
							
						 
						
							2020-07-20 13:33:04 -04:00  
				
					
						
							
							
								 
						
							
							
								a3f11567d9 
								
									
								
							
								 
							
						 
						
							
							
								
								Replace all remaining six usage with native Python 3 equivalents ( #7704 )  
							
							
							
						 
						
							2020-06-16 08:51:47 -04:00  
				
					
						
							
							
								 
						
							
							
								56b66db78a 
								
									
								
							
								 
							
						 
						
							
							
								
								Strictly enforce canonicaljson requirements in a new room version ( #7381 )  
							
							
							
						 
						
							2020-05-14 13:24:01 -04:00  
				
					
						
							
							
								 
						
							
							
								06eb5cae08 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove special auth and redaction rules for aliases events in experimental room ver. ( #7037 )  
							
							
							
						 
						
							2020-03-09 08:58:25 -04:00  
				
					
						
							
							
								 
						
							
							
								78a15b1f9d 
								
									
								
							
								 
							
						 
						
							
							
								
								Store room_versions in EventBase objects ( #6875 )  
							
							... 
							
							
							
							This is a bit fiddly because it all has to be done on one fell swoop:
* Wherever we create a new event, pass in the room version (and check it matches the format version)
* When we prune an event, use the room version of the unpruned event to create the pruned version.
* When we pass an event over the replication protocol, pass the room version over alongside it, and use it when deserialising the event again. 
							
						 
						
							2020-03-05 15:46:44 +00:00  
				
					
						
							
							
								 
						
							
							
								b36095ae5c 
								
							
								 
							
						 
						
							
							
								
								Set the PL for aliases events to 0.  
							
							
							
						 
						
							2020-01-29 11:52:52 +00:00  
				
					
						
							
							
								 
						
							
							
								ee42a5513e 
								
							
								 
							
						 
						
							
							
								
								Factor out a `copy_power_levels_contents` method  
							
							... 
							
							
							
							I'm going to need another copy (hah!) of this. 
							
						 
						
							2020-01-29 11:52:52 +00:00  
				
					
						
							
							
								 
						
							
							
								4806651744 
								
									
								
							
								 
							
						 
						
							
							
								
								Replace returnValue with return ( #5736 )  
							
							
							
						 
						
							2019-07-23 23:00:55 +10:00  
				
					
						
							
							
								 
						
							
							
								b2a382efdb 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove the ability to query relations when the original event was redacted. ( #5629 )  
							
							... 
							
							
							
							Fixes  #5594 
Forbid viewing relations on an event once it has been redacted. 
						
							2019-07-18 14:41:42 +01:00  
				
					
						
							
							
								 
						
							
							
								ad8b909ce9 
								
									
								
							
								 
							
						 
						
							
							
								
								Add origin_server_ts and sender fields to m.replace ( #5613 )  
							
							... 
							
							
							
							Riot team would like some extra fields as part of m.replace, so here you go.
Fixes : #5598  
							
						 
						
							2019-07-05 17:20:02 +01:00  
				
					
						
							
							
								 
						
							
							
								32e7c9e7f2 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black. ( #5482 )  
							
							
							
						 
						
							2019-06-20 19:32:02 +10:00  
				
					
						
							
							
								 
						
							
							
								de7672b78f 
								
							
								 
							
						 
						
							
							
								
								Don't bundle events in /sync or /events  
							
							... 
							
							
							
							As we'll send down the annotations too anyway, so this just ends up
confusing clients. 
							
						 
						
							2019-05-21 13:54:09 +01:00  
				
					
						
							
							
								 
						
							
							
								1dff859d6a 
								
							
								 
							
						 
						
							
							
								
								Rename relation types to match MSC  
							
							
							
						 
						
							2019-05-20 14:31:19 +01:00  
				
					
						
							
							
								 
						
							
							
								5dbff34509 
								
							
								 
							
						 
						
							
							
								
								Fixup bsaed on review comments  
							
							
							
						 
						
							2019-05-17 15:48:04 +01:00  
				
					
						
							
							
								 
						
							
							
								d46aab3fa8 
								
							
								 
							
						 
						
							
							
								
								Add basic editing support  
							
							
							
						 
						
							2019-05-16 16:54:45 +01:00  
				
					
						
							
							
								 
						
							
							
								a0603523d2 
								
							
								 
							
						 
						
							
							
								
								Add aggregations API  
							
							
							
						 
						
							2019-05-16 09:37:20 +01:00  
				
					
						
							
							
								 
						
							
							
								b54b03f9e1 
								
							
								 
							
						 
						
							
							
								
								Allow client event serialization to be async  
							
							
							
						 
						
							2019-05-14 11:58:01 +01:00  
				
					
						
							
							
								 
						
							
							
								84af577356 
								
							
								 
							
						 
						
							
							
								
								Implement event format v2  
							
							
							
						 
						
							2019-01-29 18:06:11 +00:00  
				
					
						
							
							
								 
						
							
							
								855a151015 
								
							
								 
							
						 
						
							
							
								
								Refactor event signing to work on dicts  
							
							... 
							
							
							
							This is in preparation for making EventBuilder format agnostic, which
means event signing should be done against the event dict rather than
the EventBuilder object. 
							
						 
						
							2019-01-28 16:42:10 +00:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								d9fe2b2d9d 
								
							
								 
							
						 
						
							
							
								
								Replace some more comparisons with six  
							
							... 
							
							
							
							plus a bonus b"" string I missed last time
Signed-off-by: Adrian Tschira <nota@notafile.com> 
							
						 
						
							2018-05-19 17:56:31 +02:00  
				
					
						
							
							
								 
						
							
							
								46826bb078 
								
							
								 
							
						 
						
							
							
								
								Comment and remove spurious logging  
							
							
							
						 
						
							2017-04-27 17:25:44 +01:00  
				
					
						
							
							
								 
						
							
							
								1e166470ab 
								
							
								 
							
						 
						
							
							
								
								Fix tests  
							
							
							
						 
						
							2017-04-26 16:23:30 +01:00  
				
					
						
							
							
								 
						
							
							
								34e682d385 
								
							
								 
							
						 
						
							
							
								
								Fix invite state to always include all events  
							
							
							
						 
						
							2017-04-26 16:18:08 +01:00  
				
					
						
							
							
								 
						
							
							
								c3d963ac24 
								
							
								 
							
						 
						
							
							
								
								Review comments  
							
							
							
						 
						
							2016-11-22 13:42:11 +00:00  
				
					
						
							
							
								 
						
							
							
								6d4e6d4cba 
								
							
								 
							
						 
						
							
							
								
								Also check for dict since sometimes they aren't frozen  
							
							
							
						 
						
							2016-11-22 10:39:41 +00:00  
				
					
						
							
							
								 
						
							
							
								cea4e4e7b2 
								
							
								 
							
						 
						
							
							
								
								Glue only_event_fields into the sync rest servlet  
							
							
							
						 
						
							2016-11-22 10:14:05 +00:00  
				
					
						
							
							
								 
						
							
							
								0a8b0eeca1 
								
							
								 
							
						 
						
							
							
								
								More tests  
							
							
							
						 
						
							2016-11-22 09:59:27 +00:00  
				
					
						
							
							
								 
						
							
							
								70a2157b64 
								
							
								 
							
						 
						
							
							
								
								Start adding some tests  
							
							
							
						 
						
							2016-11-21 17:52:45 +00:00  
				
					
						
							
							
								 
						
							
							
								f97511a1f3 
								
							
								 
							
						 
						
							
							
								
								Move event_fields filtering to serialize_event  
							
							... 
							
							
							
							Also make it an inclusive not exclusive filter, as the spec demands. 
							
						 
						
							2016-11-21 17:42:16 +00:00  
				
					
						
							
							
								 
						
							
							
								1d40373c9d 
								
							
								 
							
						 
						
							
							
								
								Include prev_content in redacted state events  
							
							
							
						 
						
							2016-08-11 10:24:41 +01:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								306415391d 
								
							
								 
							
						 
						
							
							
								
								Only add the user_id if the sender is present  
							
							
							
						 
						
							2015-12-01 11:14:48 +00:00  
				
					
						
							
							
								 
						
							
							
								bde8d78b8a 
								
							
								 
							
						 
						
							
							
								
								Copy rather than move the fields to shuffle between a v1 and a v2 event.  
							
							... 
							
							
							
							This should make all v1 APIs compatible with v2 clients. While still
allowing v1 clients to access the fields.
This makes the documentation easier since we can just document the v2
format and explain that some of the fields, in some of the APIs are
duplicated for backwards compatibility, rather than having to document
two separate event formats. 
							
						 
						
							2015-11-30 17:46:35 +00:00  
				
					
						
							
							
								 
						
							
							
								3c3fc6b268 
								
							
								 
							
						 
						
							
							
								
								Flatten the /sync response to remove the event_map  
							
							
							
						 
						
							2015-11-19 10:51:11 +00:00  
				
					
						
							
							
								 
						
							
							
								d58edd98e9 
								
							
								 
							
						 
						
							
							
								
								Update the other place check_joined_room is called  
							
							
							
						 
						
							2015-10-30 11:15:37 +00:00  
				
					
						
							
							
								 
						
							
							
								243a79d291 
								
							
								 
							
						 
						
							
							
								
								Surely we don't need to preserve 'events_default' twice  
							
							
							
						 
						
							2015-10-16 18:25:19 +01:00  
				
					
						
							
							
								 
						
							
							
								49ae42bbe1 
								
							
								 
							
						 
						
							
							
								
								Bundle in some room state in the unsigned bit of the invite when sending to invited servers  
							
							
							
						 
						
							2015-09-10 14:25:54 +01:00  
				
					
						
							
							
								 
						
							
							
								fb47c3cfbe 
								
							
								 
							
						 
						
							
							
								
								Rename key and values for m.room.history_visibility. Support 'invited' value  
							
							
							
						 
						
							2015-07-06 13:05:52 +01:00  
				
					
						
							
							
								 
						
							
							
								00ab882ed6 
								
							
								 
							
						 
						
							
							
								
								Add m.room.history_visibility to list of auth events  
							
							
							
						 
						
							2015-07-03 10:31:24 +01:00  
				
					
						
							
							
								 
						
							
							
								7d897f5bfc 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #43  from matrix-org/rejections  
							
							... 
							
							
							
							Rejections 
							
						 
						
							2015-01-30 16:11:14 +00:00  
				
					
						
							
							
								 
						
							
							
								2ebf795c0a 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into rejections  
							
							... 
							
							
							
							Conflicts:
	synapse/storage/__init__.py
	synapse/storage/schema/delta/v12.sql 
							
						 
						
							2015-01-30 11:10:37 +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  
				
					
						
							
							
								 
						
							
							
								78015948a7 
								
							
								 
							
						 
						
							
							
								
								Initial implementation of auth conflict resolution  
							
							
							
						 
						
							2015-01-29 16:52:33 +00:00  
				
					
						
							
							
								 
						
							
							
								b9c442c85c 
								
							
								 
							
						 
						
							
							
								
								Include transaction ids in unsigned section of events in the sync results for the clients that made those requests  
							
							
							
						 
						
							2015-01-29 02:46:00 +00:00  
				
					
						
							
							
								 
						
							
							
								1b4a164c02 
								
							
								 
							
						 
						
							
							
								
								Add support for formatting events in the way a v2 client expects  
							
							
							
						 
						
							2015-01-29 02:34:35 +00:00  
				
					
						
							
							
								 
						
							
							
								a56008842b 
								
							
								 
							
						 
						
							
							
								
								Start implementing incremental initial sync  
							
							
							
						 
						
							2015-01-27 16:24:22 +00:00