diff options
Diffstat (limited to 'events')
-rw-r--r-- | events/eventcontent.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/events/eventcontent.h b/events/eventcontent.h index 0733b347..4afbaff3 100644 --- a/events/eventcontent.h +++ b/events/eventcontent.h @@ -247,10 +247,14 @@ namespace QMatrixClient { public: // TODO: POD constructor - UrlWithThumbnailContent(const QJsonObject& json) + explicit UrlWithThumbnailContent(const QJsonObject& json) : UrlBasedContent<InfoT>(json) , thumbnail(InfoT::originalInfoJson) - { } + { + // Another small hack, to simplify making a thumbnail link + UrlBasedContent<InfoT>::originalJson.insert( + "thumbnailMediaId", thumbnail.mediaId()); + } public: Thumbnail thumbnail; |