From 56117dcc8e04ea5c62dc54e6748151d09e16273f Mon Sep 17 00:00:00 2001 From: student_2333 Date: Fri, 27 Sep 2024 23:48:24 +0800 Subject: [PATCH] fix(adapter-satori): unexpected `session.quote` missing --- adapters/satori/src/ws.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adapters/satori/src/ws.ts b/adapters/satori/src/ws.ts index 86a182bf..64884119 100644 --- a/adapters/satori/src/ws.ts +++ b/adapters/satori/src/ws.ts @@ -115,7 +115,9 @@ export class SatoriAdapter extends Adapter.WsClient } const session = bot.session(parsed.body) if (typeof parsed.body.message?.content === 'string') { + const oldQuote = session.quote session.content = parsed.body.message.content + if (oldQuote) session.quote = oldQuote } if (parsed.body._type && parsed.body.type !== 'internal') { session.setInternal(parsed.body._type, parsed.body._data)