From 3f06bbfa88868a8f27c87b56d3b1af7019e4a410 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 3 Aug 2018 19:22:33 +0900 Subject: Room::Private::doSendEvent: more logs --- lib/room.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/room.cpp b/lib/room.cpp index 3467e301..c6611bd5 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1168,12 +1168,16 @@ QString Room::Private::doSendEvent(const RoomEvent* pEvent) }); Room::connect(call, &BaseJob::success, q, - [this,call,pEvent] { + [this,call,pEvent,txnId] { // Find an event by the pointer saved in the lambda (the pointer // may be dangling by now but we can still search by it). auto it = findAsPending(pEvent); if (it == unsyncedEvents.end()) - return; // The event is already synced, nothing to do + { + qDebug(EVENTS) << "Pending event for transaction" << txnId + << "already merged"; + return; + } it->setReachedServer(call->eventId()); emit q->pendingEventChanged(it - unsyncedEvents.begin()); -- cgit v1.2.3