Skip to content

Commit

Permalink
fix(qq): send <p>
Browse files Browse the repository at this point in the history
  • Loading branch information
XxLittleCxX committed Nov 25, 2023
1 parent f393a86 commit 9093165
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adapters/qq/src/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ export class QQMessageEncoder<C extends Context = Context> 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([])
Expand Down

0 comments on commit 9093165

Please sign in to comment.