summary refs log tree commit diff
path: root/src/EventAccessors.cpp
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-07-10 19:39:44 -0400
committertrilene <trilene@runbox.com>2020-07-10 19:39:44 -0400
commitc73cfe181006fe3be8a3f141acda5c8a1318e47a (patch)
tree5232569c34b91653e2fe0e4220e42bd8d3196303 /src/EventAccessors.cpp
parentSupport voice calls (diff)
parentFix autolinking breaking on single quotes in href attribute (diff)
downloadnheko-c73cfe181006fe3be8a3f141acda5c8a1318e47a.tar.xz
Merge remote-tracking branch 'upstream/master' into voip
Diffstat (limited to 'src/EventAccessors.cpp')
-rw-r--r--src/EventAccessors.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/EventAccessors.cpp b/src/EventAccessors.cpp

index a2d8adbb..7071819b 100644 --- a/src/EventAccessors.cpp +++ b/src/EventAccessors.cpp
@@ -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 ""; } };