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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fa2e13dcd3
Коммит
1933f7eb76
@@ -39,8 +39,5 @@ func (*MeProvider) DoCommand(a *app.App, args *model.CommandArgs, message string
|
|||||||
ResponseType: model.COMMAND_RESPONSE_TYPE_IN_CHANNEL,
|
ResponseType: model.COMMAND_RESPONSE_TYPE_IN_CHANNEL,
|
||||||
Type: model.POST_ME,
|
Type: model.POST_ME,
|
||||||
Text: "*" + message + "*",
|
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.COMMAND_RESPONSE_TYPE_IN_CHANNEL, resp.ResponseType)
|
||||||
assert.Equal(t, model.POST_ME, resp.Type)
|
assert.Equal(t, model.POST_ME, resp.Type)
|
||||||
assert.Equal(t, "*"+msg+"*", resp.Text)
|
assert.Equal(t, "*"+msg+"*", resp.Text)
|
||||||
assert.Equal(t, model.StringInterface{
|
|
||||||
"message": msg,
|
|
||||||
}, resp.Props)
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user