mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-56776 Call ChannelHasBeenCreated plugin hook for GMs (#26226)
This commit is contained in:
parent
5fcab87934
commit
7d9f725d90
@ -584,6 +584,14 @@ func (a *App) createGroupChannel(c request.CTX, userIDs []string) (*model.Channe
|
||||
}
|
||||
}
|
||||
|
||||
a.Srv().Go(func() {
|
||||
pluginContext := pluginContext(c)
|
||||
a.ch.RunMultiHook(func(hooks plugin.Hooks) bool {
|
||||
hooks.ChannelHasBeenCreated(pluginContext, channel)
|
||||
return true
|
||||
}, plugin.ChannelHasBeenCreatedID)
|
||||
})
|
||||
|
||||
return channel, nil
|
||||
}
|
||||
|
||||
|
@ -1887,8 +1887,6 @@ func TestChannelHasBeenCreated(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("should call hook when a GM is created", func(t *testing.T) {
|
||||
t.Skip("Currently broken due to MM-56776")
|
||||
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user