summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-11-08 21:52:10 +0100
committerWim <wim@42.be>2018-11-08 21:52:10 +0100
commit59994da176f1bde83fb56e8c76f91edc3e549615 (patch)
treeeb8ba0a9115c336e0b5c28ecaae18230a897f4dd
parent3d281b3316a68a265efb0f024755e8d1c3863bd5 (diff)
downloadmatterbridge-msglm-59994da176f1bde83fb56e8c76f91edc3e549615.tar.gz
matterbridge-msglm-59994da176f1bde83fb56e8c76f91edc3e549615.tar.bz2
matterbridge-msglm-59994da176f1bde83fb56e8c76f91edc3e549615.zip
Act only on UserTypingEvents when enabled
-rw-r--r--bridge/slack/handlers.go3
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)