mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-30810 Remove special props from /me post (#16456)
* MM-30810 Remove special props from /me post * Update unit test Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
@@ -39,8 +39,5 @@ func (*MeProvider) DoCommand(a *app.App, args *model.CommandArgs, message string
|
||||
ResponseType: model.COMMAND_RESPONSE_TYPE_IN_CHANNEL,
|
||||
Type: model.POST_ME,
|
||||
Text: "*" + message + "*",
|
||||
Props: model.StringInterface{
|
||||
"message": message,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,4 @@ func TestMeProviderDoCommand(t *testing.T) {
|
||||
assert.Equal(t, model.COMMAND_RESPONSE_TYPE_IN_CHANNEL, resp.ResponseType)
|
||||
assert.Equal(t, model.POST_ME, resp.Type)
|
||||
assert.Equal(t, "*"+msg+"*", resp.Text)
|
||||
assert.Equal(t, model.StringInterface{
|
||||
"message": msg,
|
||||
}, resp.Props)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user