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:
George Goldberg
2017-07-03 15:54:59 +01:00
committed by Corey Hulen
parent ac2c91c507
commit 171a788715

View File

@@ -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}
}
}