4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-16 02:08:55 +00:00

Do not add messages without ID to cache

This commit is contained in:
Wim
2017-08-29 20:28:44 +02:00
parent ad3a753718
commit 2f7df2df43
3 changed files with 5 additions and 3 deletions

View File

@ -186,7 +186,9 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
fmt.Println(err)
}
// append the message ID (mID) from this bridge (dest) to our brMsgIDs slice
brMsgIDs = append(brMsgIDs, &BrMsgID{dest, mID})
if mID != "" {
brMsgIDs = append(brMsgIDs, &BrMsgID{dest, mID})
}
}
return brMsgIDs
}