Skip to content

Commit

Permalink
fix(contexts): fix user long poll reply message
Browse files Browse the repository at this point in the history
  • Loading branch information
negezor committed Apr 2, 2023
1 parent 887840d commit a496399
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vk-io/src/structures/contexts/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ class MessageContext<S = ContextDefaultState>
this.$filled = false;

this.applyPayload(
transformMessage((options.payload as unknown) as Parameters<typeof transformMessage>[0])
Array.isArray(options.payload)
? transformMessage((options.payload as unknown) as Parameters<typeof transformMessage>[0])
// There's user long poll reply message
: options.payload
);
} else {
this.$filled = true;
Expand Down

0 comments on commit a496399

Please sign in to comment.