summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-09-13 15:04:04 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-09-13 15:04:04 +0200
commitfe15e9325f7af0993e2b393ef4299575ea22b619 (patch)
treec14cb029d9d8a3ebd041aeee3c7c4504ae103b50 /app.go
parentRemove needless allocations (diff)
Fix typing indicators not being removed
Diffstat (limited to 'app.go')
-rw-r--r--app.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/app.go b/app.go
index 768981c..8dc3ac6 100644
--- a/app.go
+++ b/app.go
@@ -194,6 +194,14 @@ func (app *App) ircLoop() {
src: ircEvent,
content: session,
}
+ go func() {
+ for stop := range session.TypingStops() {
+ app.events <- event{
+ src: ircEvent,
+ content: stop,
+ }
+ }
+ }()
for msg := range in {
if app.cfg.Debug {
app.queueStatusLine(ui.Line{
@@ -501,6 +509,10 @@ func (app *App) handleIRCEvent(ev interface{}) {
app.s = s
return
}
+ if _, ok := ev.(irc.Typing); ok {
+ // Just refresh the screen.
+ return
+ }
msg := ev.(irc.Message)