diff options
Diffstat (limited to 'vendor/github.com/matterbridge/matterclient')
-rw-r--r-- | vendor/github.com/matterbridge/matterclient/messages.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/matterbridge/matterclient/messages.go b/vendor/github.com/matterbridge/matterclient/messages.go index 3b8a3acc..60363285 100644 --- a/vendor/github.com/matterbridge/matterclient/messages.go +++ b/vendor/github.com/matterbridge/matterclient/messages.go @@ -217,7 +217,7 @@ func (m *Client) UploadFile(data []byte, channelID string, filename string) (str func (m *Client) 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.GetData()["post"].(string)), true); ok { + if ok, _ := m.lruCache.ContainsOrAdd(digestString(rmsg.Raw.GetData()["post"].(string)), true); ok && rmsg.Raw.EventType() != model.WebsocketEventPostDeleted { m.logger.Debugf("message %#v in cache, not processing again", rmsg.Raw.GetData()["post"].(string)) rmsg.Text = "" |