dendrite/userapi
Neil Alexander 5592322e13
Clean old notifications regularly (#2244)
* Clean old notifications regularly

We'll keep highlights for a month and non-highlights for a day, to stop the `userapi_notifications` table from growing indefinitely.

We'll also allow storing events even if no pushers are present, because apparently Element Web expects to work that way.

* Fix the milliseconds

* Use process context

* Update sytest lists

* Fix build issue
2022-03-03 16:45:06 +00:00
..
api Implement Push Notifications (#1842) 2022-03-03 11:40:53 +00:00
consumers Clean old notifications regularly (#2244) 2022-03-03 16:45:06 +00:00
internal Implement Push Notifications (#1842) 2022-03-03 11:40:53 +00:00
inthttp Implement Push Notifications (#1842) 2022-03-03 11:40:53 +00:00
producers Implement Push Notifications (#1842) 2022-03-03 11:40:53 +00:00
storage Clean old notifications regularly (#2244) 2022-03-03 16:45:06 +00:00
util Implement Push Notifications (#1842) 2022-03-03 11:40:53 +00:00
userapi_test.go Implement Push Notifications (#1842) 2022-03-03 11:40:53 +00:00
userapi.go Clean old notifications regularly (#2244) 2022-03-03 16:45:06 +00:00