This commit is contained in:
idranme
2024-10-01 21:09:27 +08:00
parent 496d56f297
commit a7d86f8fe0
15 changed files with 178 additions and 214 deletions

View File

@@ -19,8 +19,8 @@ abstract class ForwardSingleMsg extends BaseAction<Payload, null> {
}
const peer = await createPeer(this.ctx, payload)
const ret = await this.ctx.ntMsgApi.forwardMsg(msg.peer, peer, [msg.msgId])
if (ret.result !== 0) {
throw new Error(`转发消息失败 ${ret.errMsg}`)
if (ret.length === 0) {
throw new Error(`转发消息失败`)
}
return null
}