Skip to content

Commit

Permalink
fix: napcat 合并转发中有回复无法解析
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Nov 14, 2024
1 parent ef6b0ac commit e59d1b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/src/client/NapCatClient/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ export const napCatReceiveToMessageElem = (data: Receive[keyof Receive]): Messag
content: 'content' in data.data ? napCatForwardMultiple(data.data.content as any) : undefined,
};
case 'reply':
throw new Error('不出意外这个应该提前处理');
return {
type: 'reply',
id: data.data.id,
};
default:
throw new Error('不支持此元素');
}
Expand Down

0 comments on commit e59d1b7

Please sign in to comment.