Skip to content

Commit

Permalink
Skip warning for deleted messages (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
KianKhadempour authored May 19, 2023
1 parent 379447c commit 7fa8324
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chatminer/chatparsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ def _parse_message(self, mess):
body = mess["content"]
elif all(key in ("sender_name", "timestamp_ms", "reactions") for key in mess):
body = "disappearingmessage"
elif any(key == "is_unsent" for key in mess):
return None
else:
self._logger.warning("Skipped message with unknown format: %s", mess)
return None
Expand Down

0 comments on commit 7fa8324

Please sign in to comment.