Skip to content

Commit

Permalink
Merge #823(nvrwhere): Fix pendingEventAdded event ref
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal authored Nov 2, 2024
2 parents 8ad6a9e + 9765839 commit 75d1f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Quotient/room.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 75d1f2a

Please sign in to comment.