diff options
author | Wim <wim@42.be> | 2018-11-08 21:52:10 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-08 21:52:10 +0100 |
commit | 59994da176f1bde83fb56e8c76f91edc3e549615 (patch) | |
tree | eb8ba0a9115c336e0b5c28ecaae18230a897f4dd /bridge/slack/handlers.go | |
parent | 3d281b3316a68a265efb0f024755e8d1c3863bd5 (diff) | |
download | matterbridge-msglm-59994da176f1bde83fb56e8c76f91edc3e549615.tar.gz matterbridge-msglm-59994da176f1bde83fb56e8c76f91edc3e549615.tar.bz2 matterbridge-msglm-59994da176f1bde83fb56e8c76f91edc3e549615.zip |
Act only on UserTypingEvents when enabled
Diffstat (limited to 'bridge/slack/handlers.go')
-rw-r--r-- | bridge/slack/handlers.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) |