From 1b64bb43e7370310a28b82386097292d174de5a9 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 2 Oct 2019 11:01:23 -0400 Subject: [PATCH] Finish sendChat update --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 5734135..16145e4 100644 --- a/main.go +++ b/main.go @@ -135,7 +135,7 @@ func downloadFile(g *gocui.Gui, messageID int, fileName string) { if err != nil { printToView(g, "Feed", fmt.Sprintf("There was an error downloading %s from %s", fileName, channel.Name)) } else { - printToView(g, "Feed", fmt.Sprintf("Downloaded %s from %s\n%+v", fileName, channel.Name, err)) + printToView(g, "Feed", fmt.Sprintf("Downloaded %s from %s", fileName, channel.Name)) } } @@ -427,7 +427,7 @@ func handleInput(g *gocui.Gui) error { if inputString[:1] == "+" { reactToMessage(strings.Replace(inputString, "+", "", 1)) } else { - go sendChat(inputString) + go sendChat(inputString, g) } go populateList(g) }