Skip to content

room-message-event: Fix image download

Guido Günther requested to merge agx/libcmatrix:image-download into main

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

Edited by Guido Günther

Merge request reports