From 1c2bea2dbdf5344844c427f6b081d7cbf1a6b83b Mon Sep 17 00:00:00 2001 From: "Erik J. Olson" Date: Wed, 13 Apr 2022 12:02:38 -0500 Subject: [PATCH] Fix gif autoplaying in Matrix chat clients (#69982) --- homeassistant/components/matrix/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/matrix/__init__.py b/homeassistant/components/matrix/__init__.py index 03772630a9e..47646a586ca 100644 --- a/homeassistant/components/matrix/__init__.py +++ b/homeassistant/components/matrix/__init__.py @@ -362,7 +362,7 @@ class MatrixBot: for target_room in target_rooms: try: room = self._join_or_get_room(target_room) - room.send_image(mxc, img) + room.send_image(mxc, img, mimetype=content_type) except MatrixRequestError as ex: _LOGGER.error( "Unable to deliver message to room '%s': %d, %s",