From b9cf30e9e6b069da566f260347fd0a8bddbc86c4 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Tue, 12 Apr 2022 00:49:24 -0400 Subject: [PATCH] Don't log contents of what look to be inbound deleted chats --- matrix_appservice_kakaotalk/portal.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/matrix_appservice_kakaotalk/portal.py b/matrix_appservice_kakaotalk/portal.py index f8f34a0..a19f438 100644 --- a/matrix_appservice_kakaotalk/portal.py +++ b/matrix_appservice_kakaotalk/portal.py @@ -1131,17 +1131,10 @@ class Portal(DBPortal, BasePortal): async def _handle_kakaotalk_deleted( self, - attachment: Attachment | None, timestamp: int, - chat_text: str | None, **_ ) -> list[EventID]: - self.log.info( - "Got deleted (?) message at %s: %s, %s", - timestamp, - f"text = \"{chat_text}\"" if chat_text is not None else "no text", - f"attachment = {attachment}" if attachment is not None else "no attachment", - ) + self.log.info(f"Got deleted (?) message at {timestamp}") return [] async def _handle_kakaotalk_text(