diff options
author | Tobias Fella <fella@posteo.de> | 2022-02-27 14:06:27 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2022-02-27 14:06:27 +0100 |
commit | 6e092bd322f52bde1b037d600a7ce71f5b30f2e4 (patch) | |
tree | 03b3f7e92f81760ef8c5f048344a33c8e935ce61 /lib/room.cpp | |
parent | eb50b8ebe4447cafe23d5f1d4ca9351e594e917e (diff) | |
download | libquotient-6e092bd322f52bde1b037d600a7ce71f5b30f2e4.tar.gz libquotient-6e092bd322f52bde1b037d600a7ce71f5b30f2e4.zip |
Apply suggestions
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index d0ac10f9..6197b3a2 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1490,10 +1490,9 @@ RoomEventPtr Room::decryptMessage(const EncryptedEvent& encryptedEvent) auto decryptedEvent = encryptedEvent.createDecrypted(decrypted); if (decryptedEvent->roomId() == id()) { return decryptedEvent; - } else { - qCWarning(E2EE) << "Decrypted event" << encryptedEvent.id() << "not for this room; discarding."; - return nullptr; } + qCWarning(E2EE) << "Decrypted event" << encryptedEvent.id() << "not for this room; discarding."; + return {}; #endif // Quotient_E2EE_ENABLED } |