Skip to content

Commit e085b8d

Browse files
committed
feat: reply back to original message
1 parent 02ab2e8 commit e085b8d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/events/message.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,13 @@ export default async function (msg: Message, type: string): Promise<void> {
220220
messageBody,
221221
options,
222222
);
223-
return await originalReply(messageBody, chatId, options);
223+
224+
let replyTargetId = msg.id.remote;
225+
if (msg.hasQuotedMsg) {
226+
const qouted = await msg.getQuotedMessage();
227+
replyTargetId = qouted.id.remote;
228+
}
229+
return await originalReply(messageBody, replyTargetId, options);
224230
};
225231

226232
if (!msg.fromMe) {

0 commit comments

Comments
 (0)