Skip to content

Commit

Permalink
fix(contexts): fix missing out in apply payload
Browse files Browse the repository at this point in the history
  • Loading branch information
negezor committed Jan 9, 2024
1 parent 72e054e commit 1df38ae
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 @@ -216,7 +216,10 @@ class MessageContext<S = ContextDefaultState>

const [message] = items;

this.applyPayload(message as IMessageContextPayload['message']);
this.applyPayload({
out: Number(this.isOutbox),
...message as Omit<IMessageContextPayload['message'], 'out'>,
});

this.$filled = true;
}
Expand Down

0 comments on commit 1df38ae

Please sign in to comment.