Merge pull request #340 from RBAmeto/patch-1

修复回复消息没有正常发送的问题
This commit is contained in:
tcmofashi
2025-03-14 01:53:29 +08:00
committed by GitHub
2 changed files with 5 additions and 7 deletions

View File

@@ -324,7 +324,7 @@ class MessageSending(MessageProcessBase):
self.message_segment = Seg( self.message_segment = Seg(
type="seglist", type="seglist",
data=[ data=[
Seg(type="reply", data=reply.message_info.message_id), Seg(type="reply", data=self.reply.message_info.message_id),
self.message_segment, self.message_segment,
], ],
) )

View File

@@ -180,8 +180,7 @@ class MessageManager:
and message_earliest.update_thinking_time() > 30 and message_earliest.update_thinking_time() > 30
and not message_earliest.is_private_message() # 避免在私聊时插入reply and not message_earliest.is_private_message() # 避免在私聊时插入reply
): ):
await message_sender.send_message(message_earliest.set_reply()) message_earliest.set_reply()
else:
await message_sender.send_message(message_earliest) await message_sender.send_message(message_earliest)
await message_earliest.process() await message_earliest.process()
@@ -208,8 +207,7 @@ class MessageManager:
and msg.update_thinking_time() > 30 and msg.update_thinking_time() > 30
and not message_earliest.is_private_message() # 避免在私聊时插入reply and not message_earliest.is_private_message() # 避免在私聊时插入reply
): ):
await message_sender.send_message(msg.set_reply()) msg.set_reply()
else:
await message_sender.send_message(msg) await message_sender.send_message(msg)
# if msg.is_emoji: # if msg.is_emoji: