aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomkeyevent.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-03-26 13:25:09 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-03-26 13:25:09 +0100
commitec4110c63443e29c78fdf0f72af08f5395ec48f7 (patch)
tree9231a07da3124c70758ffa370be8c3ebb8eca3f7 /lib/events/roomkeyevent.cpp
parent3ba2acce470407854bb38b2633675e916a51a904 (diff)
downloadlibquotient-ec4110c63443e29c78fdf0f72af08f5395ec48f7.tar.gz
libquotient-ec4110c63443e29c78fdf0f72af08f5395ec48f7.zip
Refactoring around Connection::onSyncSuccess()
The method grew large and a bit unwieldy over the years.
Diffstat (limited to 'lib/events/roomkeyevent.cpp')
-rw-r--r--lib/events/roomkeyevent.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/events/roomkeyevent.cpp b/lib/events/roomkeyevent.cpp
index 1fb2e9f5..66580430 100644
--- a/lib/events/roomkeyevent.cpp
+++ b/lib/events/roomkeyevent.cpp
@@ -4,8 +4,6 @@ using namespace Quotient;
RoomKeyEvent::RoomKeyEvent(const QJsonObject &obj) : Event(typeId(), obj)
{
- _algorithm = contentJson()["algorithm"_ls].toString();
- _roomId = contentJson()["room_id"_ls].toString();
- _sessionId = contentJson()["session_id"_ls].toString();
- _sessionKey = contentJson()["session_key"_ls].toString();
+ if (roomId().isEmpty())
+ qCWarning(E2EE) << "Room key event has empty room id";
}