summaryrefslogtreecommitdiffstats
path: root/bridge/slack/handlers.go
diff options
context:
space:
mode:
authorQais Patankar <qaisjp@gmail.com>2019-10-03 23:19:50 +0100
committerWim <wim@42.be>2019-10-04 00:19:50 +0200
commit1d708ab35196d814c932cb8570cfd01fa541f3fa (patch)
treebea86f898dea35cd945e52caaf0b65aeb5e9cc3b /bridge/slack/handlers.go
parentba6759010bc3c1c6b2793b3fdf92f8dadf481117 (diff)
downloadmatterbridge-msglm-1d708ab35196d814c932cb8570cfd01fa541f3fa.tar.gz
matterbridge-msglm-1d708ab35196d814c932cb8570cfd01fa541f3fa.tar.bz2
matterbridge-msglm-1d708ab35196d814c932cb8570cfd01fa541f3fa.zip
Suppress unhandled HelloEvent message (slack) (#913)
Diffstat (limited to 'bridge/slack/handlers.go')
-rw-r--r--bridge/slack/handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go
index 5a55949a..44a57db0 100644
--- a/bridge/slack/handlers.go
+++ b/bridge/slack/handlers.go
@@ -43,7 +43,7 @@ func (b *Bslack) handleSlack() {
func (b *Bslack) handleSlackClient(messages chan *config.Message) {
for msg := range b.rtm.IncomingEvents {
- if msg.Type != sUserTyping && msg.Type != sLatencyReport {
+ if msg.Type != sUserTyping && msg.Type != sHello && msg.Type != sLatencyReport {
b.Log.Debugf("== Receiving event %#v", msg.Data)
}
switch ev := msg.Data.(type) {
@@ -86,7 +86,7 @@ func (b *Bslack) handleSlackClient(messages chan *config.Message) {
b.Log.Errorf("Connection failed %#v %#v", ev.Error(), ev.ErrorObj)
case *slack.MemberJoinedChannelEvent:
b.users.populateUser(ev.User)
- case *slack.LatencyReport:
+ case *slack.HelloEvent, *slack.LatencyReport:
continue
default:
b.Log.Debugf("Unhandled incoming event: %T", ev)