mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix encrypted thumbnails
This commit is contained in:
parent
50314bd2dd
commit
3f27a45ef2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue