diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-03-22 21:01:31 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-03-22 21:01:40 +0100 |
commit | 3f27a45ef223fced7f1ad2bafdc943ca6e76f1a4 (patch) | |
tree | cbdc305971aa4ccd38fbebaa3fa74a12acb89b6c | |
parent | Merge pull request #1427 from 0xDEADCADE/patch-1 (diff) | |
download | nheko-3f27a45ef223fced7f1ad2bafdc943ca6e76f1a4.tar.xz |
Fix encrypted thumbnails
-rw-r--r-- | src/EventAccessors.cpp | 2 |
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; } |