Skip to content

Commit

Permalink
MM-56776 Update mock to fix ChannelHasBeenCreated not being called fo…
Browse files Browse the repository at this point in the history
…r GMs (#500)
  • Loading branch information
hmhealey authored Mar 12, 2024
1 parent de82a4a commit d1e3ccf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions server/automute_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ func TestUpdateAutomutingOnChannelCreated(t *testing.T) {
})

t.Run("when a GM is created, should mute it for users with automuting enabled", func(t *testing.T) {
t.Skip("not working due to MM-56776")

p := newAutomuteTestPlugin(t)

channel := &model.Channel{
Expand Down
5 changes: 1 addition & 4 deletions server/automute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ func (a *AutomuteAPIMock) CreateChannel(channel *model.Channel) (*model.Channel,

a.channels[channel.Id] = channel

// This should be called for all channels, but due to MM-56776, it's currently not called for GM channels
if channel.Type != model.ChannelTypeGroup {
a.plugin.ChannelHasBeenCreated(&plugin.Context{}, channel)
}
a.plugin.ChannelHasBeenCreated(&plugin.Context{}, channel)

return channel, nil
}
Expand Down

0 comments on commit d1e3ccf

Please sign in to comment.