aboutsummaryrefslogtreecommitdiff
path: root/ui/view-main.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-03-26 19:57:44 +0200
committerTulir Asokan <tulir@maunium.net>2019-03-26 19:57:44 +0200
commitc3c7cc9b3503417afe11a8067095534a751dfd04 (patch)
tree90445b9c7e2db4d1895a4b83c134d97753b24177 /ui/view-main.go
parentded4767729cedb8457b343b584d40302d518eba2 (diff)
Change things
Diffstat (limited to 'ui/view-main.go')
-rw-r--r--ui/view-main.go3
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
}