diff --git a/src/EventAccessors.cpp b/src/EventAccessors.cpp index a2d8adb..7071819 100644 --- a/src/EventAccessors.cpp +++ b/src/EventAccessors.cpp @@ -85,8 +85,10 @@ struct EventFormattedBody template std::string operator()(const mtx::events::RoomEvent &e) { - if constexpr (is_detected::value) - return e.content.formatted_body; + if constexpr (is_detected::value) { + if (e.content.format == "org.matrix.custom.html") + return e.content.formatted_body; + } return ""; } };