Set internal message ID to nextId after handling pending messages (#9463)

* Set internal message ID to nextId after handling pending messages

* add change file

* update bundle

* update reference.md

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
Graham Held 2024-04-21 07:21:34 -07:00 committed by GitHub
parent de7a294cc4
commit cf615e8e4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@tauri-apps/api": patch:bug
---
Fixes a bug when processing channel messages out of order.

File diff suppressed because one or more lines are too long

View File

@ -63,6 +63,7 @@ class Channel<T = unknown> {
break
}
}
this.#nextMessageId = nextId
}
} else {
this.#pendingMessages[id.toString()] = message