diff options
Diffstat (limited to 'events/eventcontent.h')
-rw-r--r-- | events/eventcontent.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/events/eventcontent.h b/events/eventcontent.h index 91e4ca94..0733b347 100644 --- a/events/eventcontent.h +++ b/events/eventcontent.h @@ -223,7 +223,10 @@ namespace QMatrixClient : TypedBase(json) , InfoT(json["url"].toString(), json["info"].toObject(), json["filename"].toString()) - { } + { + // A small hack to facilitate links creation in QML. + originalJson.insert("mediaId", InfoT::mediaId()); + } QMimeType type() const override { return InfoT::mimeType; } const FileInfo* fileInfo() const override { return this; } |