From 59994da176f1bde83fb56e8c76f91edc3e549615 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 8 Nov 2018 21:52:10 +0100 Subject: [PATCH] Act only on UserTypingEvents when enabled --- bridge/slack/handlers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go index 0f5e1402..e3a10bcd 100644 --- a/bridge/slack/handlers.go +++ b/bridge/slack/handlers.go @@ -49,6 +49,9 @@ func (b *Bslack) handleSlackClient(messages chan *config.Message) { } switch ev := msg.Data.(type) { case *slack.UserTypingEvent: + if !b.GetBool("ShowUserTyping") { + continue + } rmsg, err := b.handleTypingEvent(ev) if err != nil { b.Log.Errorf("%#v", err)