room-message-event: Fix image download
room-message-event: Fix image download
In case of an image the file
element has the uri
not the body
itself.
Without this we see
15:12:07.2632 cm-room-message-event[981607]:CRITICAL: cm_room_message_event_get_file_async: assertion 'self->mxc_uri' failed
in the logs and the download spinner never stops.
While at that add a docstring to make owner ship transfer more obvious.
This allows me to download images pasted with Element 1.11.64
Merge request reports
Activity
Testing a bit more the same issue shows for audio and any kind of files so using the same pattern there.
I think we could even drop setting
mxc://
intially but maybe @mohammed.sadiq you had a reason for doing it like this initially?added 4 commits
-
87f80d5e...de5b52d7 - 2 commits from branch
Librem5:main
- c7751474 - utils: Add transfer annotation for cm_utils_json_object_get_object
- a14ef5ec - room-message-event: Fix attachment download
-
87f80d5e...de5b52d7 - 2 commits from branch