summaryrefslogtreecommitdiffstats
path: root/bridge/gitter
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-08-29 20:28:44 +0200
committerWim <wim@42.be>2017-08-29 20:28:44 +0200
commit2f7df2df432b3619a95e7eb6b3d8e511b105d5cf (patch)
treeff336e650bd8a27e1491e2cd60ab733f806f7dff /bridge/gitter
parentad3a753718cb8cff85ebbe06a663a315800db6c8 (diff)
downloadmatterbridge-msglm-2f7df2df432b3619a95e7eb6b3d8e511b105d5cf.tar.gz
matterbridge-msglm-2f7df2df432b3619a95e7eb6b3d8e511b105d5cf.tar.bz2
matterbridge-msglm-2f7df2df432b3619a95e7eb6b3d8e511b105d5cf.zip
Do not add messages without ID to cache
Diffstat (limited to 'bridge/gitter')
-rw-r--r--bridge/gitter/gitter.go2
1 files changed, 1 insertions, 1 deletions
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