diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-03-01 00:33:37 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-03-01 00:33:37 +0200 |
commit | 9d132d328bbf3cdcb66d34538583a96268b6dd09 (patch) | |
tree | e13d1da87abaa3fc6c9a5e1b5056897c9b659b46 /ui/command-processor.go | |
parent | 699d0ea4e0f5a2d48a5e41c647cbbfa793983b48 (diff) |
Add support for replying and reacting to messages
Diffstat (limited to 'ui/command-processor.go')
-rw-r--r-- | ui/command-processor.go | 8 |
1 files changed, 8 insertions, 0 deletions
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, |