From d041f8d9033b4ebac73ff973e09fb7e95487ac71 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Wed, 19 Feb 2025 17:04:16 +0100 Subject: [PATCH] Fix --- src/modules/stream_notifications/messages_proc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/stream_notifications/messages_proc.py b/src/modules/stream_notifications/messages_proc.py index 52027d9..9144bbc 100644 --- a/src/modules/stream_notifications/messages_proc.py +++ b/src/modules/stream_notifications/messages_proc.py @@ -155,7 +155,7 @@ class MessagesProc: logger.info(f"HISTORY: {cls.MESSAGE_HISTORY}") if thread_id is not None: - thread_messages = [m for m in cls.MESSAGE_HISTORY if m["thread_id"] == thread_id] + thread_messages = [m for m in cls.MESSAGE_HISTORY if m["thread_id"] == thread_id and m["id"] != message_id] else: thread_messages = []