From a36856b76852c98681fd7c30fbdededb3cfc5470 Mon Sep 17 00:00:00 2001
From: Bohdan Horbeshko <bodqhrohro@gmail.com>
Date: Thu, 11 Apr 2024 20:37:51 -0400
Subject: Fix filtering content updates for outgoing messages

---
 telegram/handlers.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/telegram/handlers.go b/telegram/handlers.go
index ed18e4f..64280e6 100644
--- a/telegram/handlers.go
+++ b/telegram/handlers.go
@@ -371,6 +371,8 @@ func (c *Client) updateMessageSendSucceeded(update *client.UpdateMessageSendSucc
 		log.Errorf("failed to replace %v with %v: %v", update.OldMessageId, update.Message.Id, err.Error())
 	}
 
+	c.updateLastMessageHash(update.Message.ChatId, update.Message.Id, update.Message.Content)
+
 	c.sendMarker(update.Message.ChatId, update.Message.Id, gateway.MarkerTypeReceived)
 
 	// clean uploaded files
-- 
cgit v1.2.3