-
Notifications
You must be signed in to change notification settings - Fork 72
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
Improve plaintext formatting of Matrix messages sent via webhooks #778
base: develop
Are you sure you want to change the base?
Improve plaintext formatting of Matrix messages sent via webhooks #778
Conversation
Signed-off-by: Tadeusz „tadzik” Sośnierz <[email protected]>
Signed-off-by: Tadeusz „tadzik” Sośnierz <[email protected]>
In webhook mode sending messages comes with some limitations, including us not being able to impersonate users or upload attachements. This makes us fallback to plaintext relaybot behaviour, while preserving as much from the original message as possible. Signed-off-by: Tadeusz „tadzik” Sośnierz <[email protected]>
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, one thought. Also needs a changelog.
@@ -234,6 +234,16 @@ export class SlackHookHandler extends BaseSlackHandler { | |||
return; | |||
} | |||
|
|||
if (params.token !== room.SlackWebhookToken) { |
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.
Do we permit it if no room.SlackWebhookToken
exists?
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.
Is there any situation when this could be true for webhook-bridged rooms? I don't think the bridge will allow you to set them up that way.
In webhook mode sending messages comes with some limitations,
including us not being able to impersonate users or upload attachements.
This makes us fallback to plaintext relaybot behaviour,
while preserving as much from the original message as possible.
Signed-off-by: Tadeusz „tadzik” Sośnierz [email protected]
Depends on: #776