diff --git a/server/command.go b/server/command.go index 281fce0e0..f6bc001ab 100644 --- a/server/command.go +++ b/server/command.go @@ -130,7 +130,7 @@ func (p *Plugin) executeCommandSetWelcome(args *model.CommandArgs) { return } - if channelInfo.Type == model.ChannelTypePrivate { + if channelInfo.Type == model.ChannelTypeDirect { p.postCommandResponse(args, "welcome messages are not supported for direct channels") return } diff --git a/server/hooks.go b/server/hooks.go index 25b1b744e..e9f191244 100644 --- a/server/hooks.go +++ b/server/hooks.go @@ -39,7 +39,7 @@ func (p *Plugin) UserHasJoinedChannel(c *plugin.Context, channelMember *model.Ch mlog.Err(appErr), ) return - } else if channelInfo.Type == model.ChannelTypePrivate { + } else if channelInfo.Type == model.ChannelTypeDirect { return }