This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Email notifications for new users when creating via the Admin API. #7267
Email notifications for new users when creating via the Admin API. #7267
Changes from 2 commits
4e51fb1
ea634bd
5df74a4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can the access token be
None
? I'm skeptical this will work as expected due to the care that is taken with it in the standard API:https://github.com/matrix-org/synapse/blob/v1.12.0/synapse/handlers/register.py#L633-L638
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.
The admin user has no token of the affected user. What will be the alternativ? Is it not possible for admin users to create the pusher? The access_token is needed for removing the pusher.
https://github.com/matrix-org/synapse/blob/v1.12.0/synapse/push/pusherpool.py#L170-L172
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.
I'm not sure what the ramifications of doing this would be. I'm going to set the review flag on this and see if others have thoughts.
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.
The database table is fine with it being null, and I think the only thing we use it for is to delete the pusher when the associated device is logged out. I'd be slightly surprised if that also happened to email push, but might explain why some people are reporting email push as flakey?