-
Notifications
You must be signed in to change notification settings - Fork 3
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
Migrate to new module interface #4
Conversation
80e0bc5
to
f3264be
Compare
1c8fce8
to
f086863
Compare
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.
looks good, a few nits though
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.
lgtm other than frozen
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
You can find and change the default templates [here](https://github.com/matrix-org/synapse-email-account-validity/tree/main/email_account_validity/templates). | ||
Admins can install custom templates either by changing the default ones directly, or by | ||
configuring Synapse with a custom template directory that contains the custom templates. | ||
Admins that don't need to customise their templates can just use the module as is and ignore this paragraph. |
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.
ok, how does this work?
it looks like we call module_api.read_templates
(with no custom template dir), which calls config._base.read_templates
, which just looks in synapse/res/templates
. How does it find templates in email_account_validity/templates
?
Split out of #3