Skip to content

Commit 1cb34e2

Browse files
committed
fix: individual chat turned to group chat while creating expense
1 parent 8c88036 commit 1cb34e2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/libs/Network/SequentialQueue.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ function unpause() {
274274
Log.info(`[SequentialQueue] Unpausing the queue and flushing ${numberOfPersistedRequests} requests`);
275275
isQueuePaused = false;
276276

277+
// If there are no persisted requests, we need to flush the Onyx updates queue
278+
if (numberOfPersistedRequests === 0) {
279+
flushOnyxUpdatesQueue();
280+
}
281+
277282
// When the queue is paused and then unpaused, we call flush which by defaults recreates the isReadyPromise.
278283
// After all the WRITE requests are done, the isReadyPromise is resolved, but since it's a new instance of promise,
279284
// the pending READ request never received the resolved callback. That's why we don't want to recreate

0 commit comments

Comments
 (0)