mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-11-13 21:33:43 -08:00
Fixed raw send on client example
This commit is contained in:
@@ -136,7 +136,11 @@ func writeInput(g *gocui.Gui, v *gocui.View) error {
|
|||||||
input := strings.Join(v.ViewBufferLines(), "\n")
|
input := strings.Join(v.ViewBufferLines(), "\n")
|
||||||
|
|
||||||
fmt.Fprintln(chatLogWindow, "Me : ", input)
|
fmt.Fprintln(chatLogWindow, "Me : ", input)
|
||||||
textChan <- input
|
if viewState.input == rawInputWindow {
|
||||||
|
rawTextChan <- input
|
||||||
|
} else {
|
||||||
|
textChan <- input
|
||||||
|
}
|
||||||
|
|
||||||
v.Clear()
|
v.Clear()
|
||||||
v.EditDeleteToStartOfLine()
|
v.EditDeleteToStartOfLine()
|
||||||
|
|||||||
Reference in New Issue
Block a user