aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2021-05-19 00:35:53 +0200
committerTobias Fella <fella@posteo.de>2021-12-01 21:56:11 +0100
commitc408b460bea2010c6745e03c549e136d6b1d9ec6 (patch)
treef737de0ffb3f9abdd6710ca2cb03ea5044fc4248 /lib/room.cpp
parente0945db3c4c539040f07ff7683efa9dc4e6b9e6a (diff)
downloadlibquotient-c408b460bea2010c6745e03c549e136d6b1d9ec6.tar.gz
libquotient-c408b460bea2010c6745e03c549e136d6b1d9ec6.zip
Start tracking user's devices when a a room starts being encrypted
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 1a7a9911..b6022f1b 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -475,6 +475,9 @@ Room::Room(Connection* connection, QString id, JoinState initialJoinState)
emit baseStateLoaded();
return this == r; // loadedRoomState fires only once per room
});
+ connectSingleShot(this, &Room::encryption, this, [=](){
+ connection->newEncryptedRoom(this);
+ });
qCDebug(STATE) << "New" << terse << initialJoinState << "Room:" << id;
}