Skip to content

Commit

Permalink
🐛 修复 QQMessageExporter 中对 qq.reply_seq 的处理逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
MelodyKnit committed Feb 23, 2025
1 parent 7d172d2 commit 53b105d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ async def send_to(self, target: Union[Target, Event], bot: Bot, message: Message
message = message.exclude("mention_channel", "mention_user", "mention_everyone", "reference")
return await bot.send(event=target, message=message, **kwargs)

if target.extra.get("qq.reply_seq"):
target.extra["qq.reply_seq"] += 1

if target.channel:
if target.private:
if not target.parent_id:
Expand Down Expand Up @@ -385,8 +388,6 @@ async def send_to(self, target: Union[Target, Event], bot: Bot, message: Message
msg_seq=target.extra.get("qq.reply_seq"),
**kwargs,
)
if target.extra.get("qq.reply_seq"):
target.extra["qq.reply_seq"] += 1
return res

async def recall(self, mid: Any, bot: Bot, context: Union[Target, Event]):
Expand Down

0 comments on commit 53b105d

Please sign in to comment.