diff --git a/src/EventAccessors.cpp b/src/EventAccessors.cpp index d14a1e3e..888baf5a 100644 --- a/src/EventAccessors.cpp +++ b/src/EventAccessors.cpp @@ -103,7 +103,7 @@ struct EventThumbnailFile template std::optional operator()(const mtx::events::Event &e) { - if constexpr (requires { T::thumbnail_file; }) + if constexpr (requires { e.content.info.thumbnail_file; }) return e.content.info.thumbnail_file; return std::nullopt; }