From 9d132d328bbf3cdcb66d34538583a96268b6dd09 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 1 Mar 2020 00:33:37 +0200 Subject: Add support for replying and reacting to messages --- ui/command-processor.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ui/command-processor.go') diff --git a/ui/command-processor.go b/ui/command-processor.go index c4dabbd..3212dae 100644 --- a/ui/command-processor.go +++ b/ui/command-processor.go @@ -87,6 +87,11 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor { "createroom": {"create"}, "dm": {"pm"}, "query": {"pm"}, + "r": {"reply"}, + "delete": {"redact"}, + "remove": {"redact"}, + "rm": {"redact"}, + "del": {"redact"}, }, commands: map[string]CommandHandler{ "unknown-command": cmdUnknownCommand, @@ -107,6 +112,9 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor { "logout": cmdLogout, "accept": cmdAccept, "reject": cmdReject, + "reply": cmdReply, + "redact": cmdRedact, + "react": cmdReact, "sendevent": cmdSendEvent, "msendevent": cmdMSendEvent, "setstate": cmdSetState, -- cgit v1.2.3