6a5ded5988 
								
							
								 
							
						 
						
							
							
								
								Ensure we don't mutate the cache of push rules  
							
							
							
						 
						
							2016-09-15 09:16:13 +01:00  
				
					
						
							
							
								 
						
							
							
								3847fa38c4 
								
							
								 
							
						 
						
							
							
								
								Make bulk_get_push_rules_for_room use get_joined_users_from_context cache  
							
							
							
						 
						
							2016-09-05 10:02:38 +01:00  
				
					
						
							
							
								 
						
							
							
								c10cb581c6 
								
							
								 
							
						 
						
							
							
								
								Correctly handle the difference between prev and current state  
							
							
							
						 
						
							2016-08-31 14:26:22 +01:00  
				
					
						
							
							
								 
						
							
							
								bed10f9880 
								
							
								 
							
						 
						
							
							
								
								Use state handler instead of get_users_in_room/get_joined_hosts  
							
							
							
						 
						
							2016-08-26 14:54:30 +01:00  
				
					
						
							
							
								 
						
							
							
								a3dc1e9cbe 
								
							
								 
							
						 
						
							
							
								
								Replace context.current_state with context.current_state_ids  
							
							
							
						 
						
							2016-08-25 17:32:22 +01:00  
				
					
						
							
							
								 
						
							
							
								f164fd9220 
								
							
								 
							
						 
						
							
							
								
								Move _bulk_get_push_rules_for_room to storage layer  
							
							
							
						 
						
							2016-08-19 14:29:20 +01:00  
				
					
						
							
							
								 
						
							
							
								0b2158719c 
								
							
								 
							
						 
						
							
							
								
								Remove dead code.  
							
							... 
							
							
							
							Loading push rules now happens in the datastore, so we can remove
the methods that loaded them outside the datastore.
The ``waiting_for_join_list`` in federation handler is populated by
anything, so can be removed.
The ``_get_members_events_txn`` method isn't called from anywhere
so can be removed. 
							
						 
						
							2016-06-07 15:07:11 +01:00  
				
					
						
							
							
								 
						
							
							
								6a0afa582a 
								
							
								 
							
						 
						
							
							
								
								Load push rules in storage layer, so that they get cached  
							
							
							
						 
						
							2016-06-03 11:10:00 +01:00  
				
					
						
							
							
								 
						
							
							
								59f2d73522 
								
							
								 
							
						 
						
							
							
								
								Remove unnecessary sets  
							
							
							
						 
						
							2016-06-03 11:05:45 +01:00  
				
					
						
							
							
								 
						
							
							
								9c26b390a2 
								
							
								 
							
						 
						
							
							
								
								Only get local users  
							
							
							
						 
						
							2016-06-03 11:04:31 +01:00  
				
					
						
							
							
								 
						
							
							
								c8285564a3 
								
							
								 
							
						 
						
							
							
								
								Use state to calculate get_users_in_room  
							
							
							
						 
						
							2016-06-01 15:25:25 +01:00  
				
					
						
							
							
								 
						
							
							
								43db0d9f6a 
								
							
								 
							
						 
						
							
							
								
								Add get_users_with_read_receipts_in_room cache  
							
							
							
						 
						
							2016-06-01 10:54:32 +01:00  
				
					
						
							
							
								 
						
							
							
								e5b0bbcd33 
								
							
								 
							
						 
						
							
							
								
								Add caches to bulk_get_push_rules*  
							
							
							
						 
						
							2016-05-31 13:46:58 +01:00  
				
					
						
							
							
								 
						
							
							
								7e23476814 
								
							
								 
							
						 
						
							
							
								
								move filter_events_for_client out of base handler  
							
							
							
						 
						
							2016-05-11 13:42:37 +01:00  
				
					
						
							
							
								 
						
							
							
								757e2c79b4 
								
							
								 
							
						 
						
							
							
								
								Don't push for everyone who ever sent an RR to the room  
							
							
							
						 
						
							2016-04-14 12:02:50 +01:00  
				
					
						
							
							
								 
						
							
							
								ed3979df5f 
								
							
								 
							
						 
						
							
							
								
								Fix invite pushes  
							
							... 
							
							
							
							* If the event is an invite event, add the invitee to list of user we run push rules for (if they have a pusher etc)
 * Move invite_for_me to be higher prio than member events otherwise member events matches them
 * Spell override right 
							
						 
						
							2016-04-08 15:29:59 +01:00  
				
					
						
							
							
								 
						
							
							
								7e2c89a37f 
								
							
								 
							
						 
						
							
							
								
								Make pushers use the event_push_actions table instead of listening on an event stream & running the rules again. Sytest passes, but remaining to do:  
							
							... 
							
							
							
							* Make badges work again
 * Remove old, unused code 
							
						 
						
							2016-04-06 15:42:15 +01:00  
				
					
						
							
							
								 
						
							
							
								5defb25ac6 
								
							
								 
							
						 
						
							
							
								
								Use get_users_in_room to count the number of room members rather than using read_receipts  
							
							
							
						 
						
							2016-03-22 13:52:45 +00:00  
				
					
						
							
							
								 
						
							
							
								7076082ae6 
								
							
								 
							
						 
						
							
							
								
								Fix relative imports so they work in both py3 and py27  
							
							
							
						 
						
							2016-03-08 11:45:50 +00:00  
				
					
						
							
							
								 
						
							
							
								05aee12652 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into rav/guest_access_after_room_join  
							
							
							
						 
						
							2016-02-19 12:00:16 +00:00  
				
					
						
							
							
								 
						
							
							
								b71ca2b014 
								
							
								 
							
						 
						
							
							
								
								Allow guest users access to messages in rooms they have joined  
							
							... 
							
							
							
							There should be no difference between guest users and non-guest users in terms
of access to messages. Define the semantics of the is_peeking argument to
filter_events_for_clients (slightly) better; interpret it appropriately, and
set it correctly from /sync. 
							
						 
						
							2016-02-19 11:41:02 +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  
				
					
						
							
							
								 
						
							
							
								f28cc45183 
								
							
								 
							
						 
						
							
							
								
								Pass in current state to push action handler  
							
							
							
						 
						
							2016-02-09 16:01:40 +00:00  
				
					
						
							
							
								 
						
							
							
								f92fe15897 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #523  from matrix-org/dbkr/no_push_unless_notify  
							
							... 
							
							
							
							Better fix for actions with both dont_notify and tweaks 
							
						 
						
							2016-01-22 17:27:25 +00:00  
				
					
						
							
							
								 
						
							
							
								3fe8c56736 
								
							
								 
							
						 
						
							
							
								
								Better fix for actions with both dont_notify and tweaks  
							
							
							
						 
						
							2016-01-22 17:21:58 +00:00  
				
					
						
							
							
								 
						
							
							
								60965bd7e5 
								
							
								 
							
						 
						
							
							
								
								Revert  b4a41aa542 as it's just broken.  
							
							
							
						 
						
							2016-01-22 17:21:15 +00:00  
				
					
						
							
							
								 
						
							
							
								0e0e441b33 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #522  from matrix-org/dbkr/no_push_unless_notify  
							
							... 
							
							
							
							Don't add notifications to the table unless there's actually a 'notify' action 
							
						 
						
							2016-01-22 17:06:52 +00:00  
				
					
						
							
							
								 
						
							
							
								b4a41aa542 
								
							
								 
							
						 
						
							
							
								
								Don't add notifications to the table unless there's actually a 'notify' action  
							
							
							
						 
						
							2016-01-22 16:56:48 +00:00  
				
					
						
							
							
								 
						
							
							
								db6e26bb8c 
								
							
								 
							
						 
						
							
							
								
								Don't mutate cached values  
							
							
							
						 
						
							2016-01-22 16:03:55 +00:00  
				
					
						
							
							
								 
						
							
							
								7065b75bfd 
								
							
								 
							
						 
						
							
							
								
								Don't crash if a user has no push rule enabled entries  
							
							
							
						 
						
							2016-01-22 15:13:44 +00:00  
				
					
						
							
							
								 
						
							
							
								52bdd1b834 
								
							
								 
							
						 
						
							
							
								
								Overlay the push_rules_enabled map for users, otherwise they won't be able to disable server default rules.  
							
							
							
						 
						
							2016-01-22 14:58:19 +00:00  
				
					
						
							
							
								 
						
							
							
								746f6e0eb3 
								
							
								 
							
						 
						
							
							
								
								'filtered' is a list of zero or 1  
							
							
							
						 
						
							2016-01-20 13:44:04 +00:00  
				
					
						
							
							
								 
						
							
							
								259d1ecd1d 
								
							
								 
							
						 
						
							
							
								
								Don't generate push actions for our own events  
							
							
							
						 
						
							2016-01-20 13:24:59 +00:00  
				
					
						
							
							
								 
						
							
							
								5a7d1ecffc 
								
							
								 
							
						 
						
							
							
								
								Add regex cache. Only caculate push actions for users that have sent read receipts, and are on that server  
							
							
							
						 
						
							2016-01-19 16:01:05 +00:00  
				
					
						
							
							
								 
						
							
							
								9654ee0848 
								
							
								 
							
						 
						
							
							
								
								Return don't break  
							
							
							
						 
						
							2016-01-19 14:24:59 +00:00  
				
					
						
							
							
								 
						
							
							
								7ecd211163 
								
							
								 
							
						 
						
							
							
								
								Except truthy values  
							
							
							
						 
						
							2016-01-19 14:22:02 +00:00  
				
					
						
							
							
								 
						
							
							
								29c353c553 
								
							
								 
							
						 
						
							
							
								
								Don't split at word boundaries, actually use regex  
							
							
							
						 
						
							2016-01-18 16:48:17 +00:00  
				
					
						
							
							
								 
						
							
							
								d1f56f732e 
								
							
								 
							
						 
						
							
							
								
								Use static for const dicts  
							
							
							
						 
						
							2016-01-18 15:17:56 +00:00  
				
					
						
							
							
								 
						
							
							
								f59b564507 
								
							
								 
							
						 
						
							
							
								
								Make notifications go quicker  
							
							
							
						 
						
							2016-01-18 14:48:29 +00:00  
				
					
						
							
							
								 
						
							
							
								823b679232 
								
							
								 
							
						 
						
							
							
								
								more commas  
							
							
							
						 
						
							2016-01-07 10:02:47 +00:00  
				
					
						
							
							
								 
						
							
							
								c79f221192 
								
							
								 
							
						 
						
							
							
								
								Add is_guest flag to users db to track whether a user is a guest user or not. Use this so we can run _filter_events_for_client when calculating event_push_actions.  
							
							
							
						 
						
							2016-01-06 11:38:09 +00:00  
				
					
						
							
							
								 
						
							
							
								85ca8cb90c 
								
							
								 
							
						 
						
							
							
								
								comment typo  
							
							
							
						 
						
							2016-01-05 13:32:39 +00:00  
				
					
						
							
							
								 
						
							
							
								3051c9d002 
								
							
								 
							
						 
						
							
							
								
								Address minor PR issues  
							
							
							
						 
						
							2016-01-04 13:39:29 +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  
				
					
						
							
							
								 
						
							
							
								65c451cb38 
								
							
								 
							
						 
						
							
							
								
								Add bulk push rule evaluator which actually still evaluates rules one by one, but does far fewer db queries to fetch the rules  
							
							
							
						 
						
							2015-12-22 15:19:34 +00:00