aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/room.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 663f6037..60c61f2b 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -1306,6 +1306,8 @@ RoomEvent* Room::Private::addAsPending(RoomEventPtr&& event)
event->setTransactionId(connection->generateTxnId());
auto* pEvent = rawPtr(event);
emit q->pendingEventAboutToAdd(pEvent);
+ // FIXME: This sometimes causes a bad read:
+ // https://travis-ci.org/QMatrixClient/libqmatrixclient/jobs/492156899#L2596
unsyncedEvents.emplace_back(move(event));
emit q->pendingEventAdded();
return pEvent;