summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/mattermost/helpers.go')
-rw-r--r--bridge/mattermost/helpers.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/bridge/mattermost/helpers.go b/bridge/mattermost/helpers.go
index c6117624..121cd4db 100644
--- a/bridge/mattermost/helpers.go
+++ b/bridge/mattermost/helpers.go
@@ -186,6 +186,12 @@ func (b *Bmattermost) skipMessage(message *matterclient.Message) bool {
return true
}
+ // Ignore non-post messages
+ if message.Post == nil {
+ b.Log.Debugf("ignoring nil message.Post: %#v", message)
+ return true
+ }
+
// Ignore messages sent from matterbridge
if message.Post.Props != nil {
if _, ok := message.Post.Props["matterbridge_"+b.uuid].(bool); ok {