Don't log contents of what look to be inbound deleted chats

This commit is contained in:
Andrew Ferrazzutti 2022-04-12 00:49:24 -04:00
parent 73f8792b75
commit b9cf30e9e6
1 changed files with 1 additions and 8 deletions

View File

@ -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(