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 --- bridge/gitter/gitter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/gitter/gitter.go') diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go index 829be592..98aba865 100644 --- a/bridge/gitter/gitter.go +++ b/bridge/gitter/gitter.go @@ -105,8 +105,8 @@ func (b *Bgitter) Send(msg config.Message) (string, error) { flog.Errorf("Could not find roomID for %v", msg.Channel) return "", nil } - // add ZWSP because gitter echoes our own messages if msg.ID != "" { + flog.Debugf("updating message with id %s", msg.ID) _, err := b.c.UpdateMessage(roomID, msg.ID, msg.Username+msg.Text) if err != nil { return "", err -- cgit v1.2.3