mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-03-29 02:49:03 -07:00
Fixed raw send on client example
This commit is contained in:
parent
fff02dad70
commit
e7a4f0a478
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user