mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +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>
|
||||
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…
Reference in a new issue