diff --git a/Quotient/room.cpp b/Quotient/room.cpp index 68f7fd7dd..8b4d63dd7 100644 --- a/Quotient/room.cpp +++ b/Quotient/room.cpp @@ -1932,7 +1932,7 @@ Room::PendingEvents::iterator Room::Private::addAsPending(RoomEventPtr&& event) event->setSender(connection->userId()); emit q->pendingEventAboutToAdd(std::to_address(event)); auto it = unsyncedEvents.emplace(unsyncedEvents.end(), std::move(event)); - emit q->pendingEventAdded(std::to_address(event)); + emit q->pendingEventAdded(it->event()); return it; }