From e7a4f0a478362d5412447279f34984a1ec01a63f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?CORNIERE=20R=C3=A9mi?= Date: Thu, 9 Jan 2020 14:08:41 +0100 Subject: [PATCH] Fixed raw send on client example --- _examples/xmpp_chat_client/interface.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_examples/xmpp_chat_client/interface.go b/_examples/xmpp_chat_client/interface.go index 0c05edd..9f2c758 100644 --- a/_examples/xmpp_chat_client/interface.go +++ b/_examples/xmpp_chat_client/interface.go @@ -136,7 +136,11 @@ func writeInput(g *gocui.Gui, v *gocui.View) error { input := strings.Join(v.ViewBufferLines(), "\n") fmt.Fprintln(chatLogWindow, "Me : ", input) - textChan <- input + if viewState.input == rawInputWindow { + rawTextChan <- input + } else { + textChan <- input + } v.Clear() v.EditDeleteToStartOfLine()