From 2f7df2df432b3619a95e7eb6b3d8e511b105d5cf Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 29 Aug 2017 20:28:44 +0200 Subject: Do not add messages without ID to cache --- gateway/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gateway/router.go') diff --git a/gateway/router.go b/gateway/router.go index 56518e6c..28f81335 100644 --- a/gateway/router.go +++ b/gateway/router.go @@ -103,7 +103,7 @@ 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 { + if _, ok := gw.Messages.Get(msg.ID); !ok && msg.ID != "" { gw.Messages.Add(msg.ID, msgIDs) } } -- cgit v1.2.3