diff options
author | Tobias Fella <fella@posteo.de> | 2021-09-13 19:14:19 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-09-18 16:01:56 +0200 |
commit | fe9425f313e7c172095ff9355743427337b7ea78 (patch) | |
tree | 28c24df409faca6e4d3f6863b1554e49d6b9d1cf /lib/events/roommessageevent.cpp | |
parent | a76ed82eb298d30c7b654c74378f93a9a35580a6 (diff) | |
download | libquotient-fe9425f313e7c172095ff9355743427337b7ea78.tar.gz libquotient-fe9425f313e7c172095ff9355743427337b7ea78.zip |
Add the encryptedfile to the eventcontent
Diffstat (limited to 'lib/events/roommessageevent.cpp')
-rw-r--r-- | lib/events/roommessageevent.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/events/roommessageevent.cpp b/lib/events/roommessageevent.cpp index 71f85363..9b46594e 100644 --- a/lib/events/roommessageevent.cpp +++ b/lib/events/roommessageevent.cpp @@ -145,21 +145,21 @@ TypedBase* contentFromFile(const QFileInfo& file, bool asGenericFile) auto mimeTypeName = mimeType.name(); if (mimeTypeName.startsWith("image/")) return new ImageContent(localUrl, file.size(), mimeType, - QImageReader(filePath).size(), + QImageReader(filePath).size(), none, file.fileName()); // duration can only be obtained asynchronously and can only be reliably // done by starting to play the file. Left for a future implementation. if (mimeTypeName.startsWith("video/")) return new VideoContent(localUrl, file.size(), mimeType, - QMediaResource(localUrl).resolution(), + QMediaResource(localUrl).resolution(), none, file.fileName()); if (mimeTypeName.startsWith("audio/")) - return new AudioContent(localUrl, file.size(), mimeType, + return new AudioContent(localUrl, file.size(), mimeType, none, file.fileName()); } - return new FileContent(localUrl, file.size(), mimeType, file.fileName()); + return new FileContent(localUrl, file.size(), mimeType, none, file.fileName()); } RoomMessageEvent::RoomMessageEvent(const QString& plainBody, |