mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Fix gif autoplaying in Matrix chat clients (#69982)
This commit is contained in:
@@ -362,7 +362,7 @@ class MatrixBot:
|
|||||||
for target_room in target_rooms:
|
for target_room in target_rooms:
|
||||||
try:
|
try:
|
||||||
room = self._join_or_get_room(target_room)
|
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:
|
except MatrixRequestError as ex:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Unable to deliver message to room '%s': %d, %s",
|
"Unable to deliver message to room '%s': %d, %s",
|
||||||
|
Reference in New Issue
Block a user