Commit Graph

102 Commits (184a5c81f00c693fa23daad14dba3e819a820e69)

Author SHA1 Message Date
Erik Johnston f8f3d72e2b Don't make pushers handle presence/typing events 9 years ago
Erik Johnston 78fa346b07 Store the 'last_token' in the db, even if we processed no events 9 years ago
Erik Johnston a45ec7c651 Block on storing the current last_tokens 9 years ago
Daniel Wagner-Hall 415c2f0549 Simplify LoginHander and AuthHandler 9 years ago
David Baker 6825eef955 Oops: underride rule had an identifier with override in it. 10 years ago
David Baker b8690dd840 Catch any exceptions in the pusher loop. Use a lower timeout for pushers so we can see if they're actually still running. 10 years ago
Mark Haines 00dd207f60 Take a dict of the rule, not the rule list 10 years ago
Mark Haines 804b732aab SYN-390: Don't modify the dictionary returned from the database here either 10 years ago
Mark Haines 2043527b9b Don't try to use a txn when not in one, remove spurious debug logging 10 years ago
Mark Haines 53447e9cd3 Add caches for things requested by the pushers 10 years ago
Mark Haines d61ce3f670 Add a cache for get_current_state with state_key 10 years ago
Erik Johnston 3e71d13acf Also log when we've started pushers 10 years ago
Erik Johnston c27d6ad6b5 Only start pushers when synapse has fully started 10 years ago
Erik Johnston 46daf2d200 Start pushers on reactor thread 10 years ago
David Baker 12d381bd5d Decode the data json in the storage layer (was moved but this part was missed) 10 years ago
David Baker ed83638668 Make one-to-one rule an underride otherwise bings don't work in one-to-one wrooms. Likewise a couple of other rules. 10 years ago
Mark Haines 4e2f8b8722 Copyright notices 10 years ago
Erik Johnston bc9e69e160 Move encoding and decoding of JSON into storage layer 10 years ago
David Baker 6f4f7e4e22 pep8 10 years ago
David Baker a32e876ef4 Delete pushers when changing password 10 years ago
David Baker df4c12c762 pep8 blank lines 10 years ago
David Baker c1a256cc4c Allow multiple pushers for a single app ID & pushkey, honouring the 'append' flag in the API. 10 years ago
David Baker c7023f2155 1) Pushers are now associated with an access token 10 years ago
David Baker bbb010a30f More sacrifices to the pep8 gods. 10 years ago
David Baker c92fdf88a3 Log the matching push rule. 10 years ago
David Baker cdb2e045ee Again, underscore, not hyphen 10 years ago
David Baker 465354ffde 'false' is not False 10 years ago
David Baker 83b1e7fb3c PEP8 blank lines 10 years ago
David Baker 04f8478aaa Add the master push rule for the break-my-push button. Allow server default rules to be disabled by default. 10 years ago
David Baker 1df3ccf7ee D'oh: underscore, not hyphen 10 years ago
David Baker 118c883429 Call notifications should be override else they'll get clobbered by sender/room rules. 10 years ago
David Baker be9dafcd37 Dial down logging for failed pushers 10 years ago
David Baker 96eda876a4 Specify when we don't want to highlight 10 years ago
David Baker e7d7152c3c Remove the fallback rule - we probably don't want to be notifying for everything even if we don't know what it is. 10 years ago
David Baker 5ecc768970 Add attribute so push gateways can tell if a member event is about the user in question 10 years ago
David Baker c06b45129c Add more server default rules so we have default rules for whether you get notifs for invites / random member events 10 years ago
David Baker 657a0d2568 Comment typo 10 years ago
David Baker 1487bba226 Suppress notices should trump content/room/sender rules. 10 years ago
David Baker 83d31144eb Add the highlight tweak where messages should be highlighted a different colour in appropriate clients. 10 years ago
David Baker 590b544f67 Add default rule to suppress notices. 10 years ago
David Baker 6fab7bd2c1 s/user_name/user/ as per mjark's comment 10 years ago
David Baker 769f8b58e8 Rename the room-with-two-people rule to be more compatible if we have actual one to one rooms. 10 years ago
David Baker 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. 10 years ago
David Baker 1959088156 Add API for getting/setting enabled-ness of push rules. 10 years ago
David Baker 94fa334b01 Add enable/disable overlay for push rules (REST API not yet hooked up) 10 years ago
David Baker b457f1677c Send room ID in http notifications so clients know which room to go to if the user responds to the notification. 10 years ago
David Baker 8d5cce62ab Update pushers by app id and pushkey, not user id and pushkey 10 years ago
Erik Johnston e9e54449f5 Use encode_canonical_json for pushes 10 years ago
Erik Johnston 4ebbaf0d43 Blunty replace json with simplejson 10 years ago
Mark Haines b085fac735 Code-style fixes 10 years ago