Skip to content
Snippets Groups Projects
Commit a9e321e3 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Don't use formatted body without format

parent 09e9cffc
No related branches found
No related tags found
No related merge requests found
......@@ -85,8 +85,10 @@ struct EventFormattedBody
template<class T>
std::string operator()(const mtx::events::RoomEvent<T> &e)
{
if constexpr (is_detected<formatted_body_t, T>::value)
return e.content.formatted_body;
if constexpr (is_detected<formatted_body_t, T>::value) {
if (e.content.format == "org.matrix.custom.html")
return e.content.formatted_body;
}
return "";
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment