mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-6951: Fix channel join slash command. (#6824)
Don't show an ephemeral message when the channel join succeeds. Just redirect to the channel.
This commit is contained in:
committed by
Corey Hulen
parent
ac2c91c507
commit
171a788715
@@ -58,7 +58,7 @@ func (me *JoinProvider) DoCommand(args *model.CommandArgs, message string) *mode
|
||||
return &model.CommandResponse{Text: args.T("api.command_join.fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
|
||||
}
|
||||
|
||||
return &model.CommandResponse{GotoLocation: args.SiteURL + "/" + team.Name + "/channels/" + channel.Name, Text: args.T("api.command_join.success"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
|
||||
return &model.CommandResponse{GotoLocation: args.SiteURL + "/" + team.Name + "/channels/" + channel.Name}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user