Fix encrypted thumbnails
This commit is contained in:
parent
50314bd2dd
commit
3f27a45ef2
@ -103,7 +103,7 @@ struct EventThumbnailFile
|
|||||||
template<class T>
|
template<class T>
|
||||||
std::optional<mtx::crypto::EncryptedFile> operator()(const mtx::events::Event<T> &e)
|
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 e.content.info.thumbnail_file;
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user