Skip to content

Commit

Permalink
fix(qq): fix error with group message reference
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Nov 9, 2023
1 parent cbb538e commit 96674c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adapters/qq/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export async function decodeMessage(
})

if (data.message_reference) {
message.quote = await bot.getMessage(data.channel_id, data.message_reference.message_id)
message.quote = bot.getMessage
? await bot.getMessage(data.channel_id, data.message_reference.message_id)
: { id: data.message_reference.message_id }
}

if (!payload) return message
Expand Down

0 comments on commit 96674c7

Please sign in to comment.