diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-02 09:30:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 09:30:20 +0200 |
commit | 90ee70312e5387a289bc12b4e37c48844906bc35 (patch) | |
tree | 87b56666a1d9bb3b4617380f89c6f334a50e8be2 /lib | |
parent | 2142d4fef9eb3174c1ead5312548391178d0872e (diff) | |
parent | 46ed9cc3336231d418449046ff5486b7abc9c925 (diff) | |
download | libquotient-90ee70312e5387a289bc12b4e37c48844906bc35.tar.gz libquotient-90ee70312e5387a289bc12b4e37c48844906bc35.zip |
Merge pull request #560 from TobiasFella/createnewsessionwhenuserleaves
Diffstat (limited to 'lib')
-rw-r--r-- | lib/room.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index c745975f..9e2a5053 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -521,7 +521,9 @@ Room::Room(Connection* connection, QString id, JoinState initialJoinState) if (!usesEncryption()) { return; } - d->currentOutboundMegolmSession = nullptr; + if (d->hasValidMegolmSession()) { + d->createMegolmSession(); + } qCDebug(E2EE) << "Invalidating current megolm session because user left"; }); |