5b70f240cf 
								
									
								
							
								 
							
						 
						
							
							
								
								Make cleaning up pushers depend on the device_id instead of the token_id ( #15280 )  
							
							... 
							
							
							
							This makes it so that we rely on the `device_id` to delete pushers on logout,
instead of relying on the `access_token_id`. This ensures we're not removing
pushers on token refresh, and prepares for a world without access token IDs
(also known as the OIDC).
This actually runs the `set_device_id_for_pushers` background update, which
was forgotten in #13831 .
Note that for backwards compatibility it still deletes pushers based on the
`access_token` until the background update finishes. 
							
						 
						
							2023-03-24 11:09:39 -04:00  
				
					
						
							
							
								 
						
							
							
								ccca14140a 
								
									
								
							
								 
							
						 
						
							
							
								
								Track device IDs for pushers ( #13831 )  
							
							... 
							
							
							
							Second half of the MSC3881 implementation 
							
						 
						
							2022-09-21 15:31:53 +00:00  
				
					
						
							
							
								 
						
							
							
								8ae42ab8fa 
								
									
								
							
								 
							
						 
						
							
							
								
								Support enabling/disabling pushers (from MSC3881) ( #13799 )  
							
							... 
							
							
							
							Partial implementation of MSC3881 
							
						 
						
							2022-09-21 14:39:01 +00:00  
				
					
						
							
							
								 
						
							
							
								a4c75918b3 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove unneeded `ActionGenerator` class. ( #12691 )  
							
							... 
							
							
							
							It simply passes through to `BulkPushRuleEvaluator`, which can be
called directly instead. 
							
						 
						
							2022-05-11 07:15:21 -04:00  
				
					
						
							
							
								 
						
							
							
								02cdace707 
								
									
								
							
								 
							
						 
						
							
							
								
								Add class-diagrams and notes for push. ( #12676 )  
							
							
							
						 
						
							2022-05-10 07:43:34 -04: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  
				
					
						
							
							
								 
						
							
							
								10a88ba91c 
								
									
								
							
								 
							
						 
						
							
							
								
								Use auto_attribs/native type hints for attrs classes. ( #11692 )  
							
							
							
						 
						
							2022-01-13 13:49:28 +00:00  
				
					
						
							
							
								 
						
							
							
								e0f11ae4a5 
								
									
								
							
								 
							
						 
						
							
							
								
								disallow-untyped-defs for synapse.push ( #11023 )  
							
							
							
						 
						
							2021-10-11 17:42:10 +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  
				
					
						
							
							
								 
						
							
							
								b7748d3c00 
								
									
								
							
								 
							
						 
						
							
							
								
								Import HomeServer from the proper module. ( #9665 )  
							
							
							
						 
						
							2021-03-23 07:12:48 -04:00  
				
					
						
							
							
								 
						
							
							
								37eaf9c272 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix-up assertions about last stream token in push ( #9020 )  
							
							... 
							
							
							
							The last stream token is always known and we do not need to handle none. 
							
						 
						
							2021-01-05 10:53:15 -05:00  
				
					
						
							
							
								 
						
							
							
								bd30cfe86a 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert internal pusher dicts to attrs classes. ( #8940 )  
							
							... 
							
							
							
							This improves type hinting and should use less memory. 
							
						 
						
							2020-12-16 11:25:30 -05:00  
				
					
						
							
							
								 
						
							
							
								b3a4b53587 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix handling of stream tokens for push. ( #8943 )  
							
							... 
							
							
							
							Removes faulty assertions and fixes the logic to ensure the max
stream token is always set. 
							
						 
						
							2020-12-15 10:41:34 -05:00  
				
					
						
							
							
								 
						
							
							
								92d87c6882 
								
									
								
							
								 
							
						 
						
							
							
								
								Add type hints for HTTP and email pushers. ( #8880 )  
							
							
							
						 
						
							2020-12-07 09:59:38 -05:00  
				
					
						
							
							
								 
						
							
							
								b774c555d8 
								
									
								
							
								 
							
						 
						
							
							
								
								Add additional validation to pusher URLs. ( #8865 )  
							
							... 
							
							
							
							Pusher URLs now must end in `/_matrix/push/v1/notify` per the
specification. 
							
						 
						
							2020-12-04 10:51:56 -05:00  
				
					
						
							
							
								 
						
							
							
								8a4a4186de 
								
									
								
							
								 
							
						 
						
							
							
								
								Simplify super() calls to Python 3 syntax. ( #8344 )  
							
							... 
							
							
							
							This converts calls like super(Foo, self) -> super().
Generated with:
    sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py 
							
						 
						
							2020-09-18 09:56:44 -04:00  
				
					
						
							
							
								 
						
							
							
								d549fdfa22 
								
							
								 
							
						 
						
							
							
								
								Remove code that's now been obsoleted or moved elsewhere  
							
							
							
						 
						
							2016-04-07 16:31:38 +01:00  
				
					
						
							
							
								 
						
							
							
								b6507869cd 
								
							
								 
							
						 
						
							
							
								
								Make get_invites return RoomsForUser  
							
							
							
						 
						
							2016-03-23 10:32:10 +00:00  
				
					
						
							
							
								 
						
							
							
								7076082ae6 
								
							
								 
							
						 
						
							
							
								
								Fix relative imports so they work in both py3 and py27  
							
							
							
						 
						
							2016-03-08 11:45:50 +00:00  
				
					
						
							
							
								 
						
							
							
								b9977ea667 
								
							
								 
							
						 
						
							
							
								
								Remove dead code for setting device specific rules.  
							
							... 
							
							
							
							It wasn't possible to hit the code from the API because of a typo
in parsing the request path. Since no-one was using the feature
we might as well remove the dead code. 
							
						 
						
							2016-02-18 16:05:13 +00:00  
				
					
						
							
							
								 
						
							
							
								31a2b892d8 
								
							
								 
							
						 
						
							
							
								
								Revert to putting it around the entire block  
							
							
							
						 
						
							2016-02-09 11:25:09 +00:00  
				
					
						
							
							
								 
						
							
							
								549698b1e0 
								
							
								 
							
						 
						
							
							
								
								Don't measure across event stream call, as it lasts for a long time.  
							
							
							
						 
						
							2016-02-09 09:37:09 +00:00  
				
					
						
							
							
								 
						
							
							
								2c1fbea531 
								
							
								 
							
						 
						
							
							
								
								Fix up logcontexts  
							
							
							
						 
						
							2016-02-08 14:26:45 +00:00  
				
					
						
							
							
								 
						
							
							
								13e6262659 
								
							
								 
							
						 
						
							
							
								
								Add metrics to pushers  
							
							
							
						 
						
							2016-02-08 14:26:45 +00:00  
				
					
						
							
							
								 
						
							
							
								771528ab13 
								
							
								 
							
						 
						
							
							
								
								Change event_push_actions_rm_tokens schema  
							
							
							
						 
						
							2016-02-03 10:50:49 +00:00  
				
					
						
							
							
								 
						
							
							
								53cb173663 
								
							
								 
							
						 
						
							
							
								
								Push: Use storage apis that are cached  
							
							
							
						 
						
							2016-01-25 13:55:18 +00:00  
				
					
						
							
							
								 
						
							
							
								0e07f2e15d 
								
							
								 
							
						 
						
							
							
								
								Only fetch events for rooms and receipts  
							
							
							
						 
						
							2016-01-21 16:10:37 +00:00  
				
					
						
							
							
								 
						
							
							
								3a00f13436 
								
							
								 
							
						 
						
							
							
								
								Only compute badge count when necessary.  
							
							... 
							
							
							
							This reverts commit d726597737 
							
						 
						
							2016-01-21 14:56:11 +00:00  
				
					
						
							
							
								 
						
							
							
								3fa344c037 
								
							
								 
							
						 
						
							
							
								
								Add storage function to get all receipts for a user. Also add some cache invalidation to the receipts storage because there wasn't any, and remove a method that was unused.  
							
							
							
						 
						
							2016-01-20 15:30:31 +00:00  
				
					
						
							
							
								 
						
							
							
								7cc047455e 
								
							
								 
							
						 
						
							
							
								
								Inline membership specifier  
							
							
							
						 
						
							2016-01-20 13:50:28 +00:00  
				
					
						
							
							
								 
						
							
							
								d726597737 
								
							
								 
							
						 
						
							
							
								
								Simplify badge updating code by just updating it every time we get woken up and it's not an event  
							
							
							
						 
						
							2016-01-20 13:49:00 +00:00  
				
					
						
							
							
								 
						
							
							
								afb7b377f2 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into push_badge_counts  
							
							
							
						 
						
							2016-01-19 18:17:23 +00:00  
				
					
						
							
							
								 
						
							
							
								12623c99b6 
								
							
								 
							
						 
						
							
							
								
								Use the unread notification count to send accurate badge counts in push notifications.  
							
							
							
						 
						
							2016-01-13 18:55:57 +00:00  
				
					
						
							
							
								 
						
							
							
								9c1f853d58 
								
							
								 
							
						 
						
							
							
								
								Rename 'user_name' to 'user_id' in push to make it consistent with the rest of the code  
							
							
							
						 
						
							2016-01-13 13:32:59 +00:00  
				
					
						
							
							
								 
						
							
							
								c232780081 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #456  from matrix-org/store_event_actions  
							
							... 
							
							
							
							Send unread notification counts 
							
						 
						
							2016-01-08 14:47:15 +00:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								c914d67cda 
								
							
								 
							
						 
						
							
							
								
								Rename event-actions to event_push_actions as per PR request  
							
							
							
						 
						
							2016-01-04 14:05:37 +00:00  
				
					
						
							
							
								 
						
							
							
								9b4cd0cd0f 
								
							
								 
							
						 
						
							
							
								
								pep8 & unused variable  
							
							
							
						 
						
							2015-12-22 17:25:09 +00:00  
				
					
						
							
							
								 
						
							
							
								5645d9747b 
								
							
								 
							
						 
						
							
							
								
								Add some comments to areas that could be optimised.  
							
							
							
						 
						
							2015-12-22 17:19:22 +00:00  
				
					
						
							
							
								 
						
							
							
								5e909c73d7 
								
							
								 
							
						 
						
							
							
								
								Store nothing instead of ['dont_notify'] for events with no notification required: much as it would be nice to be able to tell between the event not having been processed and there being no notification for it, this isn't worth filling up the table with ['dont_notify'] I think. Consequently treat the empty actions array as dont_notify and filter dont_notify out of the result.  
							
							
							
						 
						
							2015-12-10 18:40:28 +00:00  
				
					
						
							
							
								 
						
							
							
								a24eedada7 
								
							
								 
							
						 
						
							
							
								
								pep8  
							
							
							
						 
						
							2015-12-09 15:57:42 +00:00  
				
					
						
							
							
								 
						
							
							
								4a728beba1 
								
							
								 
							
						 
						
							
							
								
								Split out the push rule evaluator into a separate file so it can be more readily reused. Should be functionally identical.  
							
							
							
						 
						
							2015-12-09 15:51:34 +00:00  
				
					
						
							
							
								 
						
							
							
								91482cd6a0 
								
							
								 
							
						 
						
							
							
								
								Use raw string for regex here, otherwise \b is the backspace character. Fixes displayname matching.  
							
							
							
						 
						
							2015-10-08 11:22:15 +01:00  
				
					
						
							
							
								 
						
							
							
								f8f3d72e2b 
								
							
								 
							
						 
						
							
							
								
								Don't make pushers handle presence/typing events  
							
							
							
						 
						
							2015-08-24 16:19:43 +01:00  
				
					
						
							
							
								 
						
							
							
								78fa346b07 
								
							
								 
							
						 
						
							
							
								
								Store the 'last_token' in the db, even if we processed no events  
							
							
							
						 
						
							2015-08-19 10:08:31 +01:00  
				
					
						
							
							
								 
						
							
							
								a45ec7c651 
								
							
								 
							
						 
						
							
							
								
								Block on storing the current last_tokens  
							
							
							
						 
						
							2015-08-19 10:08:12 +01:00  
				
					
						
							
							
								 
						
							
							
								b8690dd840 
								
							
								 
							
						 
						
							
							
								
								Catch any exceptions in the pusher loop. Use a lower timeout for pushers so we can see if they're actually still running.  
							
							
							
						 
						
							2015-06-05 11:40:22 +01:00  
				
					
						
							
							
								 
						
							
							
								00dd207f60 
								
							
								 
							
						 
						
							
							
								
								Take a dict of the rule, not the rule list  
							
							
							
						 
						
							2015-05-26 14:57:48 +01:00  
				
					
						
							
							
								 
						
							
							
								804b732aab 
								
							
								 
							
						 
						
							
							
								
								SYN-390: Don't modify the dictionary returned from the database here either  
							
							
							
						 
						
							2015-05-26 10:35:08 +01:00  
				
					
						
							
							
								 
						
							
							
								2043527b9b 
								
							
								 
							
						 
						
							
							
								
								Don't try to use a txn when not in one, remove spurious debug logging  
							
							
							
						 
						
							2015-05-21 16:53:03 +01:00