aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 6c5a9d33..94f0c9eb 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -1600,7 +1600,9 @@ void Room::handleRoomKeyEvent(const RoomKeyEvent& roomKeyEvent,
if (auto encryptedEvent = d->timeline[i].viewAs<EncryptedEvent>()) {
auto decrypted = decryptMessage(*encryptedEvent);
if(decrypted) {
- d->timeline[i].replaceEvent(std::move(decrypted));
+ qWarning() << "decrypted" << decrypted->fullJson();
+ auto oldEvent = d->timeline[i].replaceEvent(std::move(decrypted));
+ emit replacedEvent(d->timeline[i].event(), rawPtr(oldEvent));
}
}
}