Skip to content
Snippets Groups Projects
Verified Commit 283d6361 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Properly check for target room encryption

parent 57529497
No related branches found
No related tags found
No related merge requests found
Pipeline #3978 passed
......@@ -10,6 +10,7 @@
#include <QStandardPaths>
#include <QString>
#include "Cache.h"
#include "ChatPage.h"
#include "CombinedImagePackModel.h"
#include "CommandCompleter.h"
......@@ -461,7 +462,7 @@ TimelineViewManager::forwardMessageToRoom(mtx::events::collections::TimelineEven
auto content = mtx::accessors::url(*e);
std::optional<mtx::crypto::EncryptedFile> encryptionInfo = mtx::accessors::file(*e);
if (encryptionInfo) {
if (encryptionInfo && !cache::isRoomEncrypted(roomId.toStdString())) {
http::client()->download(
content,
[this, roomId, e, encryptionInfo](const std::string &res,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment