Update Matrix notification integration
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
- Switched from the
?access_tokenquery param to theAuthorizationheader, as the query param was deprecated in Matrix v1.11: https://spec.matrix.org/v1.13/client-server-api/#using-access-tokens (and it will be removed at some point in the future: https://github.com/matrix-org/matrix-spec-proposals/pull/4127) - Changed the default server URL from
https://matrix.orgtohttps://matrix-client.matrix.orgas per the .well-known file: https://matrix.org/.well-known/matrix/client - Changed the message type for notifications from
m.texttom.notice.m.noticeis otherwise equivalent tom.text, but it's meant for automated messages: https://spec.matrix.org/v1.13/client-server-api/#mnotice
MR acceptance checklist
Screenshots or screen recordings
How to set up and validate locally
- Checkout the branch
- Verify that the example server address is
https://matrix-client.matrix.org - Configure Matrix integration
- Click on
Test Settingsbutton - Verify that the message is sent successfully and uses the
m.noticemessage type.-
Element Web/Desktop (https://app.element.io) renders
m.noticemessages with a slightly lighter font color:
-
Edited by 🤖 GitLab Bot 🤖
