Closed hanzei closed 1 year ago
Patch coverage has no change and project coverage change: -0.02
:warning:
Comparison is base (
1383ba8
) 20.15% compared to head (ba9a50b
) 20.13%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@DHaussermann I think the best way to test this PR is to check the logs for the error message linked in the ticket and confirm it does not longer show up
Summary
If a newly created channel is a DM, the
ChannelHasBeenCreated
hook gets called with an emptyTeamID
. This leads to an error down the stack. Now,ChannelHasBeenCreated
gets ignored for DMs.I did try adding a test, but the only symptom of the bug is a log message (https://github.com/mattermost/mattermost-plugin-apps/blob/22741daa176f919160193831d3bd2f113aa369c8/server/proxy/notify.go#L225-L229) which is hard to test for.
Ticket Link
https://mattermost.atlassian.net/browse/MM-51931