send_html fix

This commit is contained in:
groug 2024-03-11 15:28:59 +00:00
parent 38295b9939
commit ae5d0c7800

View File

@ -297,7 +297,9 @@ class MatrixRoom
{ {
$body = [ $body = [
"body" => $html, "body" => $html,
"msgtype" => "m.html" "formatted_body" => $html,
"msgtype" => "m.text",
"format" => "org.matrix.custom.html",
]; ];
return $this->client->send_room_event($this->room_id, "m.room.message", $body); return $this->client->send_room_event($this->room_id, "m.room.message", $body);
} }