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()