summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-03-22 21:01:31 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-03-22 21:01:40 +0100
commit3f27a45ef223fced7f1ad2bafdc943ca6e76f1a4 (patch)
treecbdc305971aa4ccd38fbebaa3fa74a12acb89b6c
parentMerge pull request #1427 from 0xDEADCADE/patch-1 (diff)
downloadnheko-3f27a45ef223fced7f1ad2bafdc943ca6e76f1a4.tar.xz
Fix encrypted thumbnails
-rw-r--r--src/EventAccessors.cpp2
1 files changed, 1 insertions, 1 deletions
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<class T>
     std::optional<mtx::crypto::EncryptedFile> operator()(const mtx::events::Event<T> &e)
     {
-        if constexpr (requires { T::thumbnail_file; })
+        if constexpr (requires { e.content.info.thumbnail_file; })
             return e.content.info.thumbnail_file;
         return std::nullopt;
     }