Skip to content

Commit 0fc9372

Browse files
authored
Merge pull request Expensify#64617 from nkdengineer/fix/62204
fix: individual chat turned to group chat while creating expense
2 parents 9356aa6 + 911f8b0 commit 0fc9372

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)