From c5bf3f894c4efad71757f0d64ec128c01cdc5805 Mon Sep 17 00:00:00 2001 From: Pascal Abresch Date: Tue, 19 Mar 2019 16:06:18 +0100 Subject: [PATCH] fixed send and setstate to allow spaces --- ui/commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/commands.go b/ui/commands.go index 7175a21..eb2a442 100644 --- a/ui/commands.go +++ b/ui/commands.go @@ -146,7 +146,7 @@ func cmdSendEvent(cmd *Command) { } roomID := cmd.Args[0] eventType := mautrix.NewEventType(cmd.Args[1]) - rawContent := strings.Join(cmd.Args[2:], "") + rawContent := strings.Join(cmd.Args[2:], " ") debug.Print(roomID, eventType, rawContent) var content interface{} @@ -188,7 +188,7 @@ func cmdSetState(cmd *Command) { if stateKey == "-" { stateKey = "" } - rawContent := strings.Join(cmd.Args[3:], "") + rawContent := strings.Join(cmd.Args[3:], " ") var content interface{} err := json.Unmarshal([]byte(rawContent), &content)