mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-04 18:50:31 +01:00
Follow-up
This commit is contained in:
parent
65c340af2e
commit
77fb8b3c05
@ -24,7 +24,7 @@ class MessagePacker {
|
|||||||
|
|
||||||
append(state) {
|
append(state) {
|
||||||
// we need to check if there is already a request with the same name that we should send after.
|
// we need to check if there is already a request with the same name that we should send after.
|
||||||
if (USE_INVOKE_AFTER_WITH.includes(state.request.className)) {
|
if (state && USE_INVOKE_AFTER_WITH.includes(state.request.className)) {
|
||||||
// we now need to check if there is any request in queue already.
|
// we now need to check if there is any request in queue already.
|
||||||
// we loop backwards since the latest request is the most recent
|
// we loop backwards since the latest request is the most recent
|
||||||
for (let i = this._queue.length - 1; i >= 0; i--) {
|
for (let i = this._queue.length - 1; i >= 0; i--) {
|
||||||
|
Loading…
Reference in New Issue
Block a user