diff --git a/Quotient/room.cpp b/Quotient/room.cpp index 839390061..68f7fd7dd 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(); + emit q->pendingEventAdded(std::to_address(event)); return it; } diff --git a/Quotient/room.h b/Quotient/room.h index 6d905b327..bb7d960a0 100644 --- a/Quotient/room.h +++ b/Quotient/room.h @@ -838,7 +838,7 @@ public Q_SLOTS: /// The event is about to be appended to the list of pending events void pendingEventAboutToAdd(Quotient::RoomEvent* event); /// An event has been appended to the list of pending events - void pendingEventAdded(); + void pendingEventAdded(Quotient::RoomEvent* event); /// The remote echo has arrived with the sync and will be merged /// with its local counterpart /** NB: Requires a sync loop to be emitted */