Fix sticker view (#244)

The filepath of a sticker is stored in the key "file".
This commit is contained in:
JingMatrix 2021-10-31 18:46:49 +01:00 committed by GitHub
parent 5d02e0f6b3
commit eb15f3ea4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,8 @@ class MsgProxy:
doc = doc[field]
else:
doc = doc.get(field)
if "file" in doc:
return doc["file"]
if doc is None:
return {}
return doc