Skip to content

Commit f110e39

Browse files
committed
fixed non-user messages
1 parent d38c78e commit f110e39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wapp_to_json.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ def wapp_to_json(chat_location):
3232
for i in ["changed this group", "left", "added",
3333
"joined using this group's invite link", "removed", "can message this group",
3434
"ERROR", "changed the subject", "changed the group", "Messages and calls are end-to-end encrypted",
35-
"created group", "You're now", "started a call", "<Media omitted>"]:
35+
"created group", "You're now", "started a call"]:
3636
if i in msg_dict["Sender"]:
3737
flag = 0
38+
for i in ["<Media omitted>", "Waiting for this message", "You deleted this message"]:
39+
if i in msg_dict["Message"]:
40+
flag = 0
41+
3842
if flag == 1:
3943
chat_json.append(msg_dict)
4044
else:

0 commit comments

Comments
 (0)