Erik Johnston
|
0e07f2e15d
|
Only fetch events for rooms and receipts
|
2016-01-21 16:10:37 +00:00 |
|
Erik Johnston
|
3a00f13436
|
Only compute badge count when necessary.
This reverts commit d726597737 .
|
2016-01-21 14:56:11 +00:00 |
|
David Baker
|
930ba003f8
|
Remove member event rule as per SYN-607
|
2016-01-21 11:50:27 +00:00 |
|
David Baker
|
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 |
|
David Baker
|
7cc047455e
|
Inline membership specifier
|
2016-01-20 13:50:28 +00:00 |
|
David Baker
|
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 |
|
David Baker
|
2309450a76
|
Merge branch 'develop' into push_badge_counts
|
2016-01-20 13:45:13 +00:00 |
|
David Baker
|
746f6e0eb3
|
'filtered' is a list of zero or 1
|
2016-01-20 13:44:04 +00:00 |
|
David Baker
|
7441d8cc0c
|
Merge remote-tracking branch 'origin/develop' into push_badge_counts
|
2016-01-20 13:40:22 +00:00 |
|
David Baker
|
259d1ecd1d
|
Don't generate push actions for our own events
|
2016-01-20 13:24:59 +00:00 |
|
David Baker
|
afb7b377f2
|
Merge branch 'develop' into push_badge_counts
|
2016-01-19 18:17:23 +00:00 |
|
Erik Johnston
|
fb5d8e58ff
|
Change regex cache size to 5000
|
2016-01-19 16:07:07 +00:00 |
|
Erik Johnston
|
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 |
|
Erik Johnston
|
d056a0a3d8
|
Handle glob -> regex errors
|
2016-01-19 14:43:24 +00:00 |
|
Erik Johnston
|
9654ee0848
|
Return don't break
|
2016-01-19 14:24:59 +00:00 |
|
Erik Johnston
|
7ecd211163
|
Except truthy values
|
2016-01-19 14:22:02 +00:00 |
|
Erik Johnston
|
9a8949f022
|
Merge branch 'develop' of github.com:matrix-org/synapse into default_notify
|
2016-01-19 11:37:05 +00:00 |
|
Erik Johnston
|
f750a442f7
|
Update _id
|
2016-01-19 10:14:53 +00:00 |
|
Erik Johnston
|
003853e702
|
Preserve truthiness
|
2016-01-18 17:34:02 +00:00 |
|
Erik Johnston
|
a284ad4092
|
You need to escape backslashes
|
2016-01-18 17:20:44 +00:00 |
|
Erik Johnston
|
47f82e4408
|
Fix branch didn't check word_boundary
|
2016-01-18 17:04:36 +00:00 |
|
Erik Johnston
|
29c353c553
|
Don't split at word boundaries, actually use regex
|
2016-01-18 16:48:17 +00:00 |
|
Erik Johnston
|
d16dcf642e
|
Drop log levels
|
2016-01-18 15:44:04 +00:00 |
|
Erik Johnston
|
7dd14e5d1c
|
Add comments and remove dead code
|
2016-01-18 15:42:23 +00:00 |
|
Erik Johnston
|
866fe27e78
|
Do for loop once at start
|
2016-01-18 15:29:41 +00:00 |
|
Erik Johnston
|
d1f56f732e
|
Use static for const dicts
|
2016-01-18 15:17:56 +00:00 |
|
Erik Johnston
|
345ff2196a
|
Don't edit ruleset
|
2016-01-18 14:50:17 +00:00 |
|
Erik Johnston
|
63485b3029
|
Re-enable urnead notifications
|
2016-01-18 14:48:30 +00:00 |
|
Erik Johnston
|
f59b564507
|
Make notifications go quicker
|
2016-01-18 14:48:29 +00:00 |
|
David Baker
|
12623c99b6
|
Use the unread notification count to send accurate badge counts in push notifications.
|
2016-01-13 18:55:57 +00:00 |
|
Erik Johnston
|
fcb05b4c82
|
Temporarily disable notification branch
|
2016-01-13 17:39:58 +00:00 |
|
Mark Haines
|
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 |
|
David Baker
|
d9db819e23
|
Change default pushrules back to notifying for all messages.
|
2016-01-13 13:15:53 +00:00 |
|
David Baker
|
c232780081
|
Merge pull request #456 from matrix-org/store_event_actions
Send unread notification counts
|
2016-01-08 14:47:15 +00:00 |
|
David Baker
|
823b679232
|
more commas
|
2016-01-07 10:02:47 +00:00 |
|
Matthew Hodgson
|
6c28ac260c
|
copyrights
|
2016-01-07 04:26:29 +00:00 |
|
David Baker
|
992928304f
|
Delete notifications for redacted events
|
2016-01-06 11:58:46 +00:00 |
|
David Baker
|
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 |
|
David Baker
|
85ca8cb90c
|
comment typo
|
2016-01-05 13:32:39 +00:00 |
|
David Baker
|
c914d67cda
|
Rename event-actions to event_push_actions as per PR request
|
2016-01-04 14:05:37 +00:00 |
|
David Baker
|
3051c9d002
|
Address minor PR issues
|
2016-01-04 13:39:29 +00:00 |
|
David Baker
|
9b4cd0cd0f
|
pep8 & unused variable
|
2015-12-22 17:25:09 +00:00 |
|
David Baker
|
5645d9747b
|
Add some comments to areas that could be optimised.
|
2015-12-22 17:19:22 +00:00 |
|
David Baker
|
4c8f6a7e42
|
Insert push actions in a single db query rather than one per user/profile_tag
|
2015-12-22 17:04:31 +00:00 |
|
David Baker
|
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 |
|
David Baker
|
f73f154ec2
|
Only run pushers for users on this hs!
|
2015-12-21 15:28:54 +00:00 |
|
David Baker
|
42ad49f5b7
|
still very WIP, but now sends unread_notifications_count in the room object on sync (only actually corrrect in a full sync: hardcoded to 0 in incremental syncs).
|
2015-12-16 18:42:09 +00:00 |
|
David Baker
|
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 |
|
David Baker
|
aa667ee396
|
Save event actions to the db
|
2015-12-10 17:51:15 +00:00 |
|
David Baker
|
21f135ba76
|
Very first cut of calculating actions for events as they come in. Doesn't store them yet. Not very efficient.
|
2015-12-10 16:26:08 +00:00 |
|