diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-13 15:04:04 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-13 15:04:04 +0200 |
commit | fe15e9325f7af0993e2b393ef4299575ea22b619 (patch) | |
tree | c14cb029d9d8a3ebd041aeee3c7c4504ae103b50 /app.go | |
parent | Remove needless allocations (diff) |
Fix typing indicators not being removed
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) |