diff options
author | Wim <wim@42.be> | 2021-10-25 00:08:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 00:08:08 +0200 |
commit | 1635db93c7c2679fb7bc1a604b58c254153a483a (patch) | |
tree | e2c7886c526263ad7f8392014c918691a784cc7f /matterclient | |
parent | c4fe462d11c9949c9132e65fd9bf40a71c38d61c (diff) | |
download | matterbridge-msglm-1635db93c7c2679fb7bc1a604b58c254153a483a.tar.gz matterbridge-msglm-1635db93c7c2679fb7bc1a604b58c254153a483a.tar.bz2 matterbridge-msglm-1635db93c7c2679fb7bc1a604b58c254153a483a.zip |
Do not check cache on deleted messages (mattermost). Fixes #1555 (#1624)
Diffstat (limited to 'matterclient')
-rw-r--r-- | matterclient/messages.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matterclient/messages.go b/matterclient/messages.go index ad66462c..81c3ecbe 100644 --- a/matterclient/messages.go +++ b/matterclient/messages.go @@ -9,7 +9,7 @@ import ( func (m *MMClient) parseActionPost(rmsg *Message) { // add post to cache, if it already exists don't relay this again. // this should fix reposts - if ok, _ := m.lruCache.ContainsOrAdd(digestString(rmsg.Raw.Data["post"].(string)), true); ok { + if ok, _ := m.lruCache.ContainsOrAdd(digestString(rmsg.Raw.Data["post"].(string)), true); ok && rmsg.Raw.Event != model.WEBSOCKET_EVENT_POST_DELETED { m.logger.Debugf("message %#v in cache, not processing again", rmsg.Raw.Data["post"].(string)) rmsg.Text = "" return |