From 90931659105f4dee935f47c4a69fb20e2b4e39ac Mon Sep 17 00:00:00 2001 From: LittleC <26459759+XxLittleCxX@users.noreply.github.com> Date: Sat, 25 Nov 2023 14:00:08 +0800 Subject: [PATCH] fix(qq): send `

` --- adapters/qq/src/message.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/adapters/qq/src/message.ts b/adapters/qq/src/message.ts index 3f02ce3e..8d1b5c75 100644 --- a/adapters/qq/src/message.ts +++ b/adapters/qq/src/message.ts @@ -305,6 +305,12 @@ export class QQMessageEncoder extends MessageEncode const data = await this.sendFile(type, attrs) if (data) this.attachedFile = data await this.flush() // text can't send with video + } else if (type === 'br') { + this.content += '\n' + } else if (type === 'p') { + if (!this.content.endsWith('\n')) this.content += '\n' + await this.render(children) + if (!this.content.endsWith('\n')) this.content += '\n' } else if (type === 'button-group') { this.useMarkdown = true this.rows.push([])