Notes to self about matrix synapse
Template files for matrix-synapse in:
/opt/venvs/matrix-synapse/lib/python3.8/site-packages/synapse/res/templates
However, editing the email template for invitations:
/opt/venvs/matrix-synapse/lib/python3.8/site-packages# grep -r "has invited" *
Binary file synapse/storage/databases/main/__pycache__/group_server.cpython-38.pyc matches
synapse/storage/databases/main/group_server.py: """Record that the group server has invited a user"""
synapse/config/emailconfig.py: "invite_from_person": "[%(app)s] %(person)s has invited you to chat on %(app)s...",
synapse/config/emailconfig.py: "invite_from_person_to_room": "[%(app)s] %(person)s has invited you to join the %(room)s room on %(app)s...",
synapse/config/emailconfig.py: "invite_from_person_to_space": "[%(app)s] %(person)s has invited you to join the %(space)s space on %(app)s...",
Binary file synapse/config/__pycache__/emailconfig.cpython-38.pyc matches
Binary file synapse/federation/transport/server/__pycache__/groups_local.cpython-38.pyc matches
synapse/federation/transport/server/groups_local.py: """A group server has invited a local user"""
Apparently if I want to be able to edit the invitation email I need to host my own identity server to control invitation emails like this:
Hi,
H. R. (@bofh:rpgsn.net) has invited you into a room (Other Minds Magazine (private)) on Matrix. To join the conversation, either pick a Matrix client or use the single-click link below to join via Element (requires Chrome, Firefox or Safari on the web, or iOS or Android on mobile.)
That is unfortunate!