Skip to content

Commit

Permalink
fix(satori): return [] when blocked by before-send (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieuzest authored Oct 24, 2024
1 parent d9b4841 commit bc80a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export abstract class MessageEncoder<C extends Context = Context, B extends Bot<
btn.attrs.id ||= r
if (typeof btn.attrs.action === 'function') this.bot.callbacks[btn.attrs.id] = btn.attrs.action
}
if (await this.session.app.serial(this.session, 'before-send', this.session, this.options)) return
if (await this.session.app.serial(this.session, 'before-send', this.session, this.options)) return []
await this.render(this.session.elements)
await this.flush()
if (this.errors.length) {
Expand Down

0 comments on commit bc80a75

Please sign in to comment.