Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
internal/contactable.ts: 生成转发消息内容时支持引用回复
Browse files Browse the repository at this point in the history
  • Loading branch information
SalimTerryLi committed Sep 17, 2022
1 parent cb13541 commit 383abcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/contactable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ export abstract class Contactable {
let cnt = 0
for (const fake of msglist) {
const maker = new Converter(fake.message, { dm: this.dm, cachedir: this.c.config.data_dir })
if (fake.source) maker.quote(fake.source)
makers.push(maker)
const seq = randomBytes(2).readInt16BE()
const rand = randomBytes(4).readInt32BE()
Expand Down
1 change: 1 addition & 0 deletions lib/message/elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export interface Forwardable {
message: Sendable,
nickname?: string,
time?: number,
source?: Quotable
}

/** 可组合发送的元素 */
Expand Down

0 comments on commit 383abcc

Please sign in to comment.