diff --git a/server/command.go b/server/command.go index b3a342294..c8eb954bf 100644 --- a/server/command.go +++ b/server/command.go @@ -532,6 +532,7 @@ func (p *Plugin) getUniqueTeamsWithWelcomeMsgSlice(teamsWithConfigWelcomeMsg map } teamsWithKVWelcomeKeys = append(teamsWithKVWelcomeKeys, team.Name) } + allTeamNames := slices.Concat(teamsWithConfigWelcomeKeys, teamsWithKVWelcomeKeys) // Leverage the unique priniciple of keys in a map to store unique values as they are encountered