Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -1/+1 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Use auto_attribs/native type hints for attrs classes. (#11692) | Patrick Cloke | 2022-01-13 | 1 | -19/+19 |
| | |||||
* | disallow-untyped-defs for synapse.push (#11023) | David Robertson | 2021-10-11 | 1 | -1/+1 |
| | |||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | 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>` | ||||
* | Import HomeServer from the proper module. (#9665) | Patrick Cloke | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | Fix-up assertions about last stream token in push (#9020) | Patrick Cloke | 2021-01-05 | 1 | -1/+1 |
| | | | The last stream token is always known and we do not need to handle none. | ||||
* | Convert internal pusher dicts to attrs classes. (#8940) | Patrick Cloke | 2020-12-16 | 1 | -7/+53 |
| | | | This improves type hinting and should use less memory. | ||||
* | Fix handling of stream tokens for push. (#8943) | Patrick Cloke | 2020-12-15 | 1 | -5/+14 |
| | | | | Removes faulty assertions and fixes the logic to ensure the max stream token is always set. | ||||
* | Add type hints for HTTP and email pushers. (#8880) | Patrick Cloke | 2020-12-07 | 1 | -0/+50 |
| | |||||
* | Add additional validation to pusher URLs. (#8865) | Patrick Cloke | 2020-12-04 | 1 | -2/+1 |
| | | | | Pusher URLs now must end in `/_matrix/push/v1/notify` per the specification. | ||||
* | Simplify super() calls to Python 3 syntax. (#8344) | Patrick Cloke | 2020-09-18 | 1 | -1/+1 |
| | | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py | ||||
* | Remove code that's now been obsoleted or moved elsewhere | David Baker | 2016-04-07 | 1 | -327/+0 |
| | |||||
* | Make get_invites return RoomsForUser | Erik Johnston | 2016-03-23 | 1 | -1/+1 |
| | |||||
* | Fix relative imports so they work in both py3 and py27 | Mark Haines | 2016-03-08 | 1 | -2/+2 |
| | |||||
* | Remove dead code for setting device specific rules. | Mark Haines | 2016-02-18 | 1 | -4/+3 |
| | | | | | | 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. | ||||
* | Revert to putting it around the entire block | Erik Johnston | 2016-02-09 | 1 | -124/+124 |
| | |||||
* | Don't measure across event stream call, as it lasts for a long time. | Erik Johnston | 2016-02-09 | 1 | -124/+124 |
| | |||||
* | Fix up logcontexts | Erik Johnston | 2016-02-08 | 1 | -1/+1 |
| | |||||
* | Add metrics to pushers | Erik Johnston | 2016-02-08 | 1 | -31/+53 |
| | |||||
* | Change event_push_actions_rm_tokens schema | Erik Johnston | 2016-02-03 | 1 | -1/+1 |
| | |||||
* | Push: Use storage apis that are cached | Erik Johnston | 2016-01-25 | 1 | -17/+13 |
| | |||||
* | Only fetch events for rooms and receipts | Erik Johnston | 2016-01-21 | 1 | -1/+2 |
| | |||||
* | Only compute badge count when necessary. | Erik Johnston | 2016-01-21 | 1 | -4/+15 |
| | | | | This reverts commit d7265977376eb391007cde55c4b2d9b8f54d452b. | ||||
* | Add storage function to get all receipts for a user. Also add some cache ↵ | David Baker | 2016-01-20 | 1 | -22/+6 |
| | | | | invalidation to the receipts storage because there wasn't any, and remove a method that was unused. | ||||
* | Inline membership specifier | David Baker | 2016-01-20 | 1 | -3/+1 |
| | |||||
* | Simplify badge updating code by just updating it every time we get woken up ↵ | David Baker | 2016-01-20 | 1 | -15/+4 |
| | | | | and it's not an event | ||||
* | Merge branch 'develop' into push_badge_counts | David Baker | 2016-01-19 | 1 | -23/+23 |
|\ | |||||
| * | Rename 'user_name' to 'user_id' in push to make it consistent with the rest ↵ | Mark Haines | 2016-01-13 | 1 | -18/+18 |
| | | | | | | | | of the code | ||||
* | | Use the unread notification count to send accurate badge counts in push ↵ | David Baker | 2016-01-13 | 1 | -23/+79 |
|/ | | | | notifications. | ||||
* | Merge pull request #456 from matrix-org/store_event_actions | David Baker | 2016-01-08 | 1 | -15/+6 |
|\ | | | | | Send unread notification counts | ||||
| * | Rename event-actions to event_push_actions as per PR request | David Baker | 2016-01-04 | 1 | -1/+1 |
| | | |||||
| * | pep8 & unused variable | David Baker | 2015-12-22 | 1 | -0/+1 |
| | | |||||
| * | Add some comments to areas that could be optimised. | David Baker | 2015-12-22 | 1 | -1/+3 |
| | | |||||
| * | Store nothing instead of ['dont_notify'] for events with no notification ↵ | David Baker | 2015-12-10 | 1 | -15/+3 |
| | | | | | | | | 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. | ||||
* | | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
|/ | |||||
* | pep8 | David Baker | 2015-12-09 | 1 | -4/+4 |
| | |||||
* | Split out the push rule evaluator into a separate file so it can be more ↵ | David Baker | 2015-12-09 | 1 | -185/+10 |
| | | | | readily reused. Should be functionally identical. | ||||
* | Use raw string for regex here, otherwise \b is the backspace character. ↵ | David Baker | 2015-10-08 | 1 | -1/+1 |
| | | | | Fixes displayname matching. | ||||
* | Don't make pushers handle presence/typing events | Erik Johnston | 2015-08-24 | 1 | -3/+5 |
| | |||||
* | Store the 'last_token' in the db, even if we processed no events | Erik Johnston | 2015-08-19 | 1 | -0/+6 |
| | |||||
* | Block on storing the current last_tokens | Erik Johnston | 2015-08-19 | 1 | -5/+5 |
| | |||||
* | Catch any exceptions in the pusher loop. Use a lower timeout for pushers so ↵ | David Baker | 2015-06-05 | 1 | -112/+133 |
| | | | | we can see if they're actually still running. | ||||
* | Take a dict of the rule, not the rule list | Mark Haines | 2015-05-26 | 1 | -1/+1 |
| | |||||
* | SYN-390: Don't modify the dictionary returned from the database here either | Mark Haines | 2015-05-26 | 1 | -4/+7 |
| | |||||
* | Don't try to use a txn when not in one, remove spurious debug logging | Mark Haines | 2015-05-21 | 1 | -2/+0 |
| | |||||
* | Add caches for things requested by the pushers | Mark Haines | 2015-05-21 | 1 | -15/+10 |
| | |||||
* | Add a cache for get_current_state with state_key | Mark Haines | 2015-05-21 | 1 | -0/+4 |
| | |||||
* | Allow multiple pushers for a single app ID & pushkey, honouring the 'append' ↵ | David Baker | 2015-03-25 | 1 | -2/+8 |
| | | | | flag in the API. | ||||
* | More sacrifices to the pep8 gods. | David Baker | 2015-03-12 | 1 | -2/+8 |
| | |||||
* | Log the matching push rule. | David Baker | 2015-03-11 | 1 | -2/+4 |
| | |||||
* | Again, underscore, not hyphen | David Baker | 2015-03-11 | 1 | -1/+1 |
| | |||||
* | Add the master push rule for the break-my-push button. Allow server default ↵ | David Baker | 2015-03-10 | 1 | -1/+5 |
| | | | | rules to be disabled by default. | ||||
* | Add more server default rules so we have default rules for whether you get ↵ | David Baker | 2015-03-06 | 1 | -4/+4 |
| | | | | notifs for invites / random member events | ||||
* | Comment typo | David Baker | 2015-03-06 | 1 | -1/+1 |
| | |||||
* | s/user_name/user/ as per mjark's comment | David Baker | 2015-03-02 | 1 | -2/+2 |
| | |||||
* | SYN-267 Add a fallback rule as an explicit server default rule and make the ↵ | David Baker | 2015-02-26 | 1 | -1/+1 |
| | | | | default dont-notify so you effectively have a "notify for everything else" switch you can turn on and off. | ||||
* | Add enable/disable overlay for push rules (REST API not yet hooked up) | David Baker | 2015-02-25 | 1 | -0/+4 |
| | |||||
* | Update pushers by app id and pushkey, not user id and pushkey | David Baker | 2015-02-13 | 1 | -6/+6 |
| | |||||
* | Blunty replace json with simplejson | Erik Johnston | 2015-02-11 | 1 | -1/+1 |
| | |||||
* | Code-style fixes | Mark Haines | 2015-02-10 | 1 | -3/+5 |
| | |||||
* | Need to use re.search if looking for matches not at the start of the string. ↵ | David Baker | 2015-02-09 | 1 | -3/+3 |
| | | | | Also comparisons with None should be 'is'. | ||||
* | only do word-boundary patches on bodies for now | Matthew Hodgson | 2015-02-09 | 1 | -1/+4 |
| | |||||
* | glob *s should probably be non-greedy | Matthew Hodgson | 2015-02-08 | 1 | -1/+1 |
| | |||||
* | oops | Matthew Hodgson | 2015-02-08 | 1 | -1/+1 |
| | |||||
* | kill off fnmatch in favour of word-boundary based push alerts (untested) | Matthew Hodgson | 2015-02-08 | 1 | -12/+20 |
| | |||||
* | Server default rules now of all kinds rather than all being at lowest prio. | David Baker | 2015-02-05 | 1 | -4/+4 |
| | |||||
* | s/instance_handle/profile_tag/ | David Baker | 2015-02-03 | 1 | -4/+4 |
| | |||||
* | Use set_tweak instead of set_sound | David Baker | 2015-02-03 | 1 | -2/+2 |
| | |||||
* | Again, don't assume all member events have displayname. | David Baker | 2015-01-30 | 1 | -1/+1 |
| | |||||
* | Don't assume all member events have a display nme. | David Baker | 2015-01-30 | 1 | -4/+5 |
| | |||||
* | Add glob asterisks when running rules. | David Baker | 2015-01-30 | 1 | -0/+5 |
| | | | | | | Means that now you can't do exact matches even in override rules, but I think we can live with that. Advantage is that you'll now always get back what was put in to the API. | ||||
* | Add room member count condition and default rule to make a noise on rooms of ↵ | David Baker | 2015-01-30 | 1 | -5/+45 |
| | | | | only 2 people. | ||||
* | Change 'from' in notification pokes to 'sender' to match client API v2. Send ↵ | David Baker | 2015-01-29 | 1 | -0/+10 |
| | | | | sender display names where they exist. | ||||
* | Add default push rules including setting a sound for messages mentioning ↵ | David Baker | 2015-01-29 | 1 | -8/+39 |
| | | | | your username / display name | ||||
* | Code style fixes. | Mark Haines | 2015-01-29 | 1 | -8/+7 |
| | |||||
* | Only send a badge-reset if the user actually has unread notifications. | David Baker | 2015-01-29 | 1 | -2/+7 |
| | |||||
* | doc style fix | David Baker | 2015-01-28 | 1 | -1/+1 |
| | |||||
* | Oops, bad merge: needed to change the base class of the rest servlets too. | David Baker | 2015-01-28 | 1 | -2/+3 |
| | |||||
* | More code style things | David Baker | 2015-01-28 | 1 | -3/+4 |
| | |||||
* | Brackets rather than slashes at end | David Baker | 2015-01-28 | 1 | -3/+3 |
| | |||||
* | Redundant bracketing & missed space | David Baker | 2015-01-28 | 1 | -2/+2 |
| | |||||
* | Update copyright | David Baker | 2015-01-28 | 1 | -1/+1 |
| | |||||
* | Reset badge count to zero when last active time is bumped | David Baker | 2015-01-28 | 1 | -0/+19 |
| | |||||
* | Support membership events and more camelcase/underscores | David Baker | 2015-01-26 | 1 | -0/+4 |
| | |||||
* | Pushers should only try & look for rejected devices in something that's a ↵ | David Baker | 2015-01-26 | 1 | -1/+1 |
| | | | | list or tuple. | ||||
* | Use push settings! | David Baker | 2015-01-23 | 1 | -8/+83 |
| | |||||
* | more pep8 suggestions | David Baker | 2015-01-23 | 1 | -2/+1 |
| | |||||
* | add instance_handles to pushers so we have a way to refer to them even if ↵ | David Baker | 2015-01-20 | 1 | -1/+2 |
| | | | | the push token changes. | ||||
* | Send room name and first alias in notification poke. | David Baker | 2015-01-15 | 1 | -0/+13 |
| | |||||
* | Don't make the pushers' event streams cause people to appear online | David Baker | 2015-01-15 | 1 | -1/+3 |
| | |||||
* | Honour the 'rejected' return from push gateways | David Baker | 2015-01-13 | 1 | -3/+34 |
| | | | | | | | Add a timestamp to push tokens so we know the last time they we got them from the device. Send it to the push gateways so it can determine whether its failure is more recent than the token. Stop and remove pushers that have been rejected. | ||||
* | Split out function to decide whether to notify or a given event | David Baker | 2015-01-13 | 1 | -2/+17 |
| | |||||
* | If we didn't get any events, advance the token or we'll just keep not ↵ | David Baker | 2014-12-18 | 1 | -0/+1 |
| | | | | getting the same events again. | ||||
* | after a few rethinks, a working implementation of pushers. | David Baker | 2014-12-18 | 1 | -3/+9 |
| | |||||
* | Update to app_id / app_instance_id (partially) and mangle to be PEP8 compliant. | David Baker | 2014-12-03 | 1 | -30/+67 |
| | |||||
* | More work on pushers. Attempt to do HTTP pokes. Not sure if the actual HTTP ↵ | David Baker | 2014-11-21 | 1 | -10/+48 |
| | | | | pokes work or not yet but the retry semantics are pretty good. | ||||
* | Start creating a module to do generic notifications (just prints them to ↵ | David Baker | 2014-11-19 | 1 | -0/+76 |
stdout currently!) |