-
Notifications
You must be signed in to change notification settings - Fork 22
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
Unknown type messages support #90
base: master
Are you sure you want to change the base?
Unknown type messages support #90
Conversation
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.
Awesome work @danilvalov 🎉
Just one suggestion to control this behavior via a plugin setting, so the admin can turn this off if desired.
We would add it here
and use it like the other plugin settings throughout the plugin
server/plugin.go
Outdated
@@ -267,6 +268,8 @@ func (p *Plugin) handleNotification(body io.Reader, channel *TeamChannel) { | |||
p.sendPostNotification(p.createSNSMessageNotificationAttachment(notification.Subject, messageNotification), channel) | |||
return | |||
} | |||
|
|||
p.sendPostNotification(p.createSNSUnknownTypeMessage(notification.Subject, notification.Message), channel) |
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 thinking this behavior should be configurable in a plugin setting
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.
@mickmister I'm not sure if I described this option correctly in Settings. Check, please
ae63a3b
to
4afae68
Compare
Co-authored-by: Michael Kochell <[email protected]>
This pull request adds support for unknown type events.
Parses and formates JSON (if the message is in JSON format) or sends plain text