1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

insert command completion as command part (instead of plain)

this prevents the command being sent as plain text

this adds a `type` property to completions to decide which
parts should be inserted into the composer, hence deciding how
they will be rendered.
This commit is contained in:
Bruno Windels
2019-09-23 14:39:19 +02:00
parent 133e68191a
commit 228905bec2
7 changed files with 25 additions and 13 deletions

View File

@@ -89,6 +89,7 @@ export default class RoomProvider extends AutocompleteProvider {
return {
completion: displayAlias,
completionId: displayAlias,
type: "room",
suffix: ' ',
href: makeRoomPermalink(displayAlias),
component: (