-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Add Matrix bridge #59377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Notifier] Add Matrix bridge #59377
Conversation
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also expand the UnsupportedSchemeException
and its test in the Notifier component
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/Exception/UnsupportedRecipientTypeException.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/Exception/UnsupportedRecipientTypeException.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
Did in one of my last commits. |
src/Symfony/Component/Notifier/Bridge/Matrix/Exception/UnsupportesMsgTypeByAPIException.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransportFactory.php
Outdated
Show resolved
Hide resolved
Not quite out of topic but would it be ok to add a console command that helps with creating and getting the As the token is normaly bound to a client device and the instruction in README.md will provide the token of the client device 'incomnito browser'. Thats not very helpful if the user want's to use multiple instances (botusers / devices ) as they will need to do this for every token. |
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransportFactory.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
private function createPrivateChannel(string $recipientId): ?array | ||
{ | ||
$invites[] = $recipientId; | ||
$response = $this->request('POST', '/_matrix/client/v3/createRoom', ['json' => ['creation_content' => ['m.federate' => false], 'is_direct' => true, 'preset' => 'trusted_private_chat', 'invite' => $invites]]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using multiline here makes sense to me, no need for a one liner in this case
src/Symfony/Component/Notifier/Bridge/Matrix/MatrixTransport.php
Outdated
Show resolved
Hide resolved
Thank you @chii0815. |
… (xabbuh) This PR was merged into the 6.4 branch. Discussion ---------- [WebProfilerBundle] fix rendering notifier message options | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #59377 (comment) | License | MIT Commits ------- d4e8a5c fix rendering notifier message options
…tions (xabbuh) This PR was merged into the 7.3 branch. Discussion ---------- [Notifier] do not implement JsonSerializable in MatrixOptions | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Fix #59377 (comment) | License | MIT Commits ------- 1af047d do not implement JsonSerializable in MatrixOptions
This PR was squashed before being merged into the 7.3 branch. Discussion ---------- [Notifier] Add Matrix bridge Doc PR for * symfony/symfony#59377 Commits ------- 03b1ed9 [Notifier] Add Matrix bridge
Docs PR: symfony/symfony-docs#20548
Recipe PR: symfony/recipes#1374
Added a new notifier bridge for Matrix Synapse.
Whats implemented in this?
Whats not implemented at the moment?