mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-28 00:34:54 +00:00
Bug fix on None metadata #148
This commit is contained in:
@@ -436,7 +436,7 @@ def determine_metadata(content: sqlite3.Row, init_msg: Optional[str]) -> Optiona
|
|||||||
msg = "Someone joined this group by using a invite link" # TODO: Find out who
|
msg = "Someone joined this group by using a invite link" # TODO: Find out who
|
||||||
elif content["action_type"] == 27:
|
elif content["action_type"] == 27:
|
||||||
msg += " changed the group description to:<br>"
|
msg += " changed the group description to:<br>"
|
||||||
msg += content['data'].replace("\n", '<br>')
|
msg += (content['data'] or "Unknown").replace("\n", '<br>')
|
||||||
elif content["action_type"] == 28:
|
elif content["action_type"] == 28:
|
||||||
try:
|
try:
|
||||||
old = content['old_jid'].split('@')[0]
|
old = content['old_jid'].split('@')[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user