From 1f9919b6ff9cadaa3405f7ac22c9a3a9ac0606a3 Mon Sep 17 00:00:00 2001 From: ayusht2810 Date: Thu, 18 Apr 2024 15:10:28 +0530 Subject: [PATCH] Fix issue of not able to add a welcome message in private channel --- server/command.go | 2 +- server/hooks.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }