UnifiedPush / common-proxies

Mirror of https://codeberg.org/UnifiedPush/common-proxies
MIT License
24 stars 11 forks source link

Matrix Gateway : Rejected list : null to empty array #13

Closed p1gp1g closed 3 years ago

p1gp1g commented 3 years ago

The specification https://matrix.org/docs/spec/push_gateway/r0.1.1 requires "A list of all pushkeys given in the notification request that are not valid. [...] May be empty." So, if no pushkey is invalid it should return {"rejected":[]}. Currently it returns {"rejected":null} (and gives an error on element-android when it sends itself the notif to troubleshoot).

karmanyaahm commented 3 years ago

Fixed by b57164be0704df7bf025f3d8f95696cfecf55fd7..32e978ac73f4a8951621326d93e31ebf1ddc8a7f