diff options
author | Wim <wim@42.be> | 2018-11-19 21:28:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-19 21:28:23 +0100 |
commit | ae32bae791e6276b4404d6cb19993c3acf543566 (patch) | |
tree | 8a85a5c58fc41138dcf0aa72f95f62d9dd8782a8 /gateway/router.go | |
parent | 57eba77561e7b6ab5fbaaa799b45078b62c9c808 (diff) | |
download | matterbridge-msglm-ae32bae791e6276b4404d6cb19993c3acf543566.tar.gz matterbridge-msglm-ae32bae791e6276b4404d6cb19993c3acf543566.tar.bz2 matterbridge-msglm-ae32bae791e6276b4404d6cb19993c3acf543566.zip |
Add protocol to msg.ID in cache (#596)
Diffstat (limited to 'gateway/router.go')
-rw-r--r-- | gateway/router.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/router.go b/gateway/router.go index e62df205..99b34378 100644 --- a/gateway/router.go +++ b/gateway/router.go @@ -109,8 +109,8 @@ func (r *Router) handleReceive() { msgIDs = append(msgIDs, gw.handleMessage(msg, br)...) } // only add the message ID if it doesn't already exists - if _, ok := gw.Messages.Get(msg.ID); !ok && msg.ID != "" { - gw.Messages.Add(msg.ID, msgIDs) + if _, ok := gw.Messages.Get(msg.Protocol + " " + msg.ID); !ok && msg.ID != "" { + gw.Messages.Add(msg.Protocol+" "+msg.ID, msgIDs) } } } |