my.bumble.android: handle more msg types

This commit is contained in:
Dima Gerasimov 2023-08-06 20:08:20 +01:00 committed by karlicoss
parent fcaa7c1561
commit 7ec894807f

View file

@ -89,7 +89,7 @@ def _handle_db(db: sqlite3.Connection) -> Iterator[EntitiesRes]:
db=db
):
try:
key = {'TEXT': 'text', 'QUESTION_GAME': 'text', 'IMAGE': 'url', 'GIF': 'url'}[payload_type]
key = {'TEXT': 'text', 'QUESTION_GAME': 'text', 'IMAGE': 'url', 'GIF': 'url', 'AUDIO': 'url', 'VIDEO': 'url'}[payload_type]
text = json.loads(payload)[key]
yield _Message(
id=id,