Commit graph

37 commits

Author SHA1 Message Date
Tulir Asokan
a547c0636c event,pushrules: replace assert.Nil with assert.NoError
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-08-21 13:19:11 +03:00
Tulir Asokan
29319ccfd5 pushrules: fix word boundary matching and case sensitivity
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-02-08 16:18:51 +02:00
Tulir Asokan
6c07832ed7 pushrules: add support for sender_notification_permission condition kind
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-10-18 14:07:25 +03:00
Tulir Asokan
758e80a5f0 hicli: add html sanitization and push rule evaluation 2024-10-17 14:04:19 +03:00
Tulir Asokan
7a86cb26ff pushrules: fix glob matching
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-30 18:10:22 +03:00
Tulir Asokan
67703cf96f pushrules: use glob package from util 2024-08-30 17:27:12 +03:00
Tulir Asokan
49a6de3c27
Implement new push rule condition kinds (#120) 2023-05-24 15:09:43 +03:00
Tulir Asokan
7e7e805814 Mark NotifySpecified as deprecated 2023-03-23 14:52:51 +02:00
Tulir Asokan
9f45e14e31 Add method to get matching push rule instead of only actions 2023-03-22 23:18:55 +02:00
Max Sandholm
3c98e87a95 Add field for read room ID in badge count push notification 2023-02-14 18:00:25 +02:00
Sumner Evans
d0c13d2f04 PushNotification: add BeeperUserID field
Signed-off-by: Sumner Evans <sumner@beeper.com>
2022-10-20 13:00:05 -06:00
Tulir Asokan
a583e7e507 Add more user agents 2022-10-10 10:30:24 +03:00
Tulir Asokan
b1eb4fe866 Set content-type for push gateway requests 2022-09-28 14:16:29 +03:00
Tulir Asokan
f6944f6390 Don't match state_key push rules for non-state events 2022-09-28 11:04:17 +03:00
Tulir Asokan
b1ead68d12 Support matching nulls in push rules to fully implement MSC3862
https://github.com/matrix-org/matrix-spec-proposals/pull/3862
2022-09-28 11:00:30 +03:00
Tulir Asokan
53a8608c8a Fix parsing m.relates_to from non-standard events in push rules 2022-09-27 12:39:02 +03:00
Tulir Asokan
c4ce54d9d6 Implement MSC3664
https://github.com/matrix-org/matrix-spec-proposals/pull/3664
2022-09-27 12:31:44 +03:00
Tulir Asokan
61b0553ae9 Implement MSC3873 and match Synapse behavior in push rules
Synapse's current behavior isn't specced, but MSC3873 adds the current
behavior as a backwards compat method and defines some sensible escaping.

https://github.com/matrix-org/matrix-spec-proposals/pull/3873
2022-09-27 12:08:39 +03:00
Tulir Asokan
4e03c9198c Add more push gateway types 2022-09-26 20:42:33 +03:00
Tulir Asokan
a435e7a69a Fix push key field names 2022-09-08 17:47:31 +03:00
Tulir Asokan
d5378226a8 Add beeper TTL field for pushing 2022-09-02 11:17:04 -04:00
Tulir Asokan
00595c0038 Handle push request response data 2022-09-02 11:16:56 -04:00
Tulir Asokan
5a51f8a2f1 Add utilities to use push gateways 2022-08-25 14:47:15 +03:00
Tulir Asokan
a64afd0fe6 Run gofmt with Go 1.19 for godocs 2022-08-04 11:37:35 +03:00
Tulir Asokan
0eee489b64 Switch to /v3 paths everywhere 2022-04-17 12:59:34 +03:00
Tulir Asokan
00ca2be6a5 Run gofmt 2021-09-22 10:52:01 -04:00
Tulir Asokan
0574872af2 Merge branch 'e2ee' 2020-05-05 21:17:15 +03:00
Tulir Asokan
25b5009a0c Update copyright headers in pushrule tests 2020-05-05 16:15:45 +03:00
Tulir Asokan
fcaa384fcb Merge branch 'master' into e2ee 2020-05-02 01:38:47 +03:00
Tulir Asokan
676a8e21d9 Fix pushrule tests. Fixes #8 2020-05-02 01:37:51 +03:00
Tulir Asokan
fe82e2b914 Add initial outbound encryption 2020-04-28 00:57:04 +03:00
Tulir Asokan
8b7fb1ed8b Update copyright year 2020-04-20 01:25:12 +03:00
Tulir Asokan
f484169149 Register event content types for gob and add some other stuff 2020-04-19 14:43:00 +03:00
Tulir Asokan
f4fc99cddb Overhaul event content representation 2020-04-19 03:23:27 +03:00
Tulir Asokan
d5f90df214 Update stuff 2020-04-16 19:10:51 +03:00
Tulir Asokan
941515e73d Rename events to event 2020-04-16 17:29:47 +03:00
Tulir Asokan
825a931b09 Move pushrules module from gomuks 2020-04-16 17:28:59 +03:00