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  
				
					
						
							
							
								 
						
							
							
								53447e9cd3 
								
							
								 
							
						 
						
							
							
								
								Add caches for things requested by the pushers  
							
							
							
						 
						
							2015-05-21 16:41:39 +01:00  
				
					
						
							
							
								 
						
							
							
								d61ce3f670 
								
							
								 
							
						 
						
							
							
								
								Add a cache for get_current_state with state_key  
							
							
							
						 
						
							2015-05-21 16:41:39 +01:00  
				
					
						
							
							
								 
						
							
							
								c1a256cc4c 
								
							
								 
							
						 
						
							
							
								
								Allow multiple pushers for a single app ID & pushkey, honouring the 'append' flag in the API.  
							
							
							
						 
						
							2015-03-25 19:06:22 +00:00  
				
					
						
							
							
								 
						
							
							
								bbb010a30f 
								
							
								 
							
						 
						
							
							
								
								More sacrifices to the pep8 gods.  
							
							
							
						 
						
							2015-03-12 16:53:12 +00:00  
				
					
						
							
							
								 
						
							
							
								c92fdf88a3 
								
							
								 
							
						 
						
							
							
								
								Log the matching push rule.  
							
							
							
						 
						
							2015-03-11 22:17:31 +00:00  
				
					
						
							
							
								 
						
							
							
								cdb2e045ee 
								
							
								 
							
						 
						
							
							
								
								Again, underscore, not hyphen  
							
							
							
						 
						
							2015-03-11 14:22:35 +00:00  
				
					
						
							
							
								 
						
							
							
								04f8478aaa 
								
							
								 
							
						 
						
							
							
								
								Add the master push rule for the break-my-push button. Allow server default rules to be disabled by default.  
							
							
							
						 
						
							2015-03-10 17:26:25 +00:00  
				
					
						
							
							
								 
						
							
							
								c06b45129c 
								
							
								 
							
						 
						
							
							
								
								Add more server default rules so we have default rules for whether you get notifs for invites / random member events  
							
							
							
						 
						
							2015-03-06 11:50:51 +00:00  
				
					
						
							
							
								 
						
							
							
								657a0d2568 
								
							
								 
							
						 
						
							
							
								
								Comment typo  
							
							
							
						 
						
							2015-03-06 11:34:30 +00:00  
				
					
						
							
							
								 
						
							
							
								6fab7bd2c1 
								
							
								 
							
						 
						
							
							
								
								s/user_name/user/ as per mjark's comment  
							
							
							
						 
						
							2015-03-02 18:17:19 +00:00  
				
					
						
							
							
								 
						
							
							
								cfac3b7873 
								
							
								 
							
						 
						
							
							
								
								SYN-267 Add a fallback rule as an explicit server default rule and make the default dont-notify so you effectively have a "notify for everything else" switch you can turn on and off.  
							
							
							
						 
						
							2015-02-26 18:58:14 +00:00  
				
					
						
							
							
								 
						
							
							
								94fa334b01 
								
							
								 
							
						 
						
							
							
								
								Add enable/disable overlay for push rules (REST API not yet hooked up)  
							
							
							
						 
						
							2015-02-25 19:17:07 +00:00