diff --git a/CHANGELOG.md b/CHANGELOG.md index 59a5efb..5916555 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.2.2] - 2024-07-03 +### Fixed +- Comments with mentions in direct messages was not delivered to client. + ## [1.2.1] - 2023-12-03 ### Changed diff --git a/chat/process-event.go b/chat/process-event.go index bd7c8c4..3ecb7ab 100644 --- a/chat/process-event.go +++ b/chat/process-event.go @@ -64,11 +64,6 @@ func (c *Chat) renderEvent(event *frf.Event) tg.Chattable { } return c.withPostBody(c.newHTMLMessage(text), event) case "mention_in_comment": - if event.Post != nil && event.Post.IsDirect() { - // We will receive this in 'direct_comment' event - return nil - } - if ok, _ := c.App.IsPostTracked(c.ID, event.PostID); ok { // We will receive this with post subscription return nil @@ -90,11 +85,6 @@ func (c *Chat) renderEvent(event *frf.Event) tg.Chattable { return c.withCommentBody(c.newHTMLMessage(headText), event) case "mention_comment_to": - if event.Post != nil && event.Post.IsDirect() { - // We will receive this in 'direct_comment' event - return nil - } - if ok, _ := c.App.IsPostTracked(c.ID, event.PostID); ok { // We will receive this with post subscription return nil