commit c1f149cf8426a9cf204b19be3c3b4f96944f02eb
Author: Wim <wim@42.be>
Date: Mon Jan 10 22:58:53 2022 +0000
diff --git a/bridge/mattermost/helpers.go b/bridge/mattermost/helpers.go
index f012813..865b872 100644
--- a/bridge/mattermost/helpers.go
+++ b/bridge/mattermost/helpers.go
@@ -32913 +32914 @@ func (b *Bmattermost) skipMessage6(message *matterclient6.Message) bool {
// Ignore messages sent from matterbridge
if message.Post.Props != nil {
if _, ok := message.Post.Props["matterbridge_"+b.uuid].(bool); ok {
- b.Log.Debugf("sent by matterbridge, ignoring")
+ b.Log.Debug("sent by matterbridge, ignoring")
return true
}
}
// Ignore messages sent from a user logged in as the bot
if b.mc6.User.Username == message.Username {
+ b.Log.Debug("message from same user as bot, ignoring")
return true
}
@@ -3466 +3477 @@ func (b *Bmattermost) skipMessage6(message *matterclient6.Message) bool {
// ignore messages from other teams than ours
if message.Raw.GetData()["team_id"].(string) != b.TeamID {
+ b.Log.Debug("message from other team, ignoring")
return true
}