diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-03-26 19:57:44 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-03-26 19:57:44 +0200 |
commit | c3c7cc9b3503417afe11a8067095534a751dfd04 (patch) | |
tree | 90445b9c7e2db4d1895a4b83c134d97753b24177 /ui/view-main.go | |
parent | ded4767729cedb8457b343b584d40302d518eba2 (diff) |
Change things
Diffstat (limited to 'ui/view-main.go')
-rw-r--r-- | ui/view-main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/view-main.go b/ui/view-main.go index 8b2d895..2cbd203 100644 --- a/ui/view-main.go +++ b/ui/view-main.go @@ -155,6 +155,7 @@ func (view *MainView) InputSubmit(roomView *RoomView, text string) { cmd := view.cmdProcessor.ParseCommand(roomView, text) go view.cmdProcessor.HandleCommand(cmd) } else { + debug.Print(text) view.SendMessage(roomView, text) } roomView.SetInputText("") @@ -175,7 +176,7 @@ func (view *MainView) sendTempMessage(roomView *RoomView, tempMessage ifc.Messag if err != nil { tempMessage.SetState(ifc.MessageStateFailed) if httpErr, ok := err.(mautrix.HTTPError); ok { - if respErr, ok := httpErr.WrappedError.(mautrix.RespError); ok { + if respErr := httpErr.RespError; respErr != nil { // Show shorter version if available err = respErr } |