aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 3a894b9b..57914db4 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -475,6 +475,7 @@ Room::Room(Connection* connection, QString id, JoinState initialJoinState)
emit baseStateLoaded();
return this == r; // loadedRoomState fires only once per room
});
+#ifdef Quotient_E2EE_ENABLED
connectSingleShot(this, &Room::encryption, this, [=](){
connection->encryptionUpdate(this);
});
@@ -483,6 +484,7 @@ Room::Room(Connection* connection, QString id, JoinState initialJoinState)
connection->encryptionUpdate(this);
}
});
+#endif
qCDebug(STATE) << "New" << terse << initialJoinState << "Room:" << id;
}