aboutsummaryrefslogtreecommitdiff
path: root/events/eventcontent.h
diff options
context:
space:
mode:
Diffstat (limited to 'events/eventcontent.h')
-rw-r--r--events/eventcontent.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/events/eventcontent.h b/events/eventcontent.h
index 4afbaff3..9d44aec0 100644
--- a/events/eventcontent.h
+++ b/events/eventcontent.h
@@ -200,6 +200,7 @@ namespace QMatrixClient
explicit TypedBase(const QJsonObject& o = {}) : Base(o) { }
virtual QMimeType type() const = 0;
virtual const FileInfo* fileInfo() const { return nullptr; }
+ virtual const Thumbnail* thumbnailInfo() const { return nullptr; }
};
/**
@@ -256,6 +257,9 @@ namespace QMatrixClient
"thumbnailMediaId", thumbnail.mediaId());
}
+ const Thumbnail* thumbnailInfo() const override
+ { return &thumbnail; }
+
public:
Thumbnail thumbnail;