diff --git a/server/channels/app/channel.go b/server/channels/app/channel.go index 40387e6b13..71d2566cb7 100644 --- a/server/channels/app/channel.go +++ b/server/channels/app/channel.go @@ -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 } diff --git a/server/channels/app/plugin_hooks_test.go b/server/channels/app/plugin_hooks_test.go index ad51d3b136..df87548352 100644 --- a/server/channels/app/plugin_hooks_test.go +++ b/server/channels/app/plugin_hooks_test.go @@ -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()