From 3f27a45ef223fced7f1ad2bafdc943ca6e76f1a4 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 22 Mar 2023 21:01:31 +0100 Subject: [PATCH] Fix encrypted thumbnails --- src/EventAccessors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }