aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 6c426de2..296f783a 100644
--- a/room.cpp
+++ b/room.cpp
@@ -803,7 +803,8 @@ void Room::Private::processRedaction(RoomEventPtr redactionEvent)
// Make a new event from the redacted JSON, exchange events,
// notify everyone and delete the old event
- auto oldEvent { ti.replaceEvent(makeEvent<RoomEvent>(originalJson)) };
+ RoomEventPtr oldEvent
+ { ti.replaceEvent(makeEvent<RoomEvent>(originalJson)) };
q->onRedaction(oldEvent.get(), ti.event());
qCDebug(MAIN) << "Redacted" << oldEvent->id() << "with" << redaction->id();
emit q->replacedEvent(ti.event(), oldEvent.get());