MM-2954 - Add a separate post type for /me messages and update formatting (#11082)
* MM-2954 * Added new const post type for /me commands * Modified me command to return response text without *__* wrapper * Modified unit test for MeCommand to reflect changes * Added unit test for the me command provider * * Reverted change to text property in me command response * Added original message in me command response props * Updated unit tests * gofmt changes
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
a760f32526
Коммит
66993e1fae
@@ -34,5 +34,12 @@ func (me *MeProvider) GetCommand(a *App, T goi18n.TranslateFunc) *model.Command
|
||||
}
|
||||
|
||||
func (me *MeProvider) DoCommand(a *App, args *model.CommandArgs, message string) *model.CommandResponse {
|
||||
return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_IN_CHANNEL, Text: "*" + message + "*"}
|
||||
return &model.CommandResponse{
|
||||
ResponseType: model.COMMAND_RESPONSE_TYPE_IN_CHANNEL,
|
||||
Type: model.POST_ME,
|
||||
Text: "*" + message + "*",
|
||||
Props: model.StringInterface{
|
||||
"message": message,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user