Fix encrypted thumbnails

pull/1429/head
Nicolas Werner 2 years ago
parent 50314bd2dd
commit 3f27a45ef2
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      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;
}

Loading…
Cancel
Save