From 2d91052d6edbe491e0a41ca4576afbf151168f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Thu, 19 Oct 2023 13:46:28 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20preemptively=20check=20if=20`rel?= =?UTF-8?q?=5Ftype`=20is=20in=20`event.source["content"]["m.relates=5Fto"]?= =?UTF-8?q?`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/nio_llm/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nio_llm/client.py b/src/nio_llm/client.py index bbc72f2..d374cb7 100644 --- a/src/nio_llm/client.py +++ b/src/nio_llm/client.py @@ -99,6 +99,7 @@ class LLMClient(AsyncClient): # ignore thread messages if ( "m.relates_to" in event.source["content"] + and "rel_type" in event.source["content"]["m.relates_to"] and event.source["content"]["m.relates_to"]["rel_type"] == "m.thread" ): logger.debug("Ignoring thread message.")