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:
Harrison Healey
2021-01-04 14:13:38 -05:00
committed by GitHub
parent fa2e13dcd3
commit 1933f7eb76
2 changed files with 0 additions and 6 deletions

View File

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

View File

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