From bfaff445d296f8d08e1e65e6efb39c14f76e0f55 Mon Sep 17 00:00:00 2001 From: Anillc Date: Tue, 23 Jan 2024 00:16:29 +0800 Subject: [PATCH] fix(mail): fix `to` address in flush, fix #206 (#229) --- adapters/mail/src/message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/mail/src/message.ts b/adapters/mail/src/message.ts index 0ffe2c40..7a85b0fb 100644 --- a/adapters/mail/src/message.ts +++ b/adapters/mail/src/message.ts @@ -17,7 +17,7 @@ export class MailMessageEncoder extends MessageEnco async flush() { if (!this.buffer && this.attachments.length === 0) return const messageId = await this.bot.internal.send({ - to: this.session.channelId, + to: this.session.channelId.substring(8), html: `
${this.buffer}
`, attachments: this.attachments, inReplyTo: this.reply,