project-mirai / mirai-api-http

Mirai HTTP API (console) plugin
GNU Affero General Public License v3.0
1.65k stars 345 forks source link

bot收到的回复bot发送的消息中,Quote里的messageId有误 #682

Closed Jadlokin-Scarlet closed 1 year ago

Jadlokin-Scarlet commented 1 year ago

bot发送好友消息后,主人在安卓端回复bot的消息,bot收到的回复消息中,Quote里的messageId和bot发送好友消息时的返回的messageId不一致。 ps:QQpc端回复没问题

  1. bot发送好友消息 image image
  2. 主人在QQ安卓端回复bot消息(图一为pc端回复是正确的,图二是安卓端回复,messageId是不对的) image image
ryoii commented 1 year ago

从日志上看,从 core 上获取到引用里的 messageId 就已经带负数了,我怀疑是 core 的问题

ryoii commented 1 year ago

从其他 issue 反馈上看,这个出现负数的 messageId 貌似都会出现错误值的情况

Jadlokin-Scarlet commented 1 year ago

需要在mirai那边再提一个issue吗

ryoii commented 1 year ago

我用 core 复现一下

ryoii commented 1 year ago

我复现了,确实是 core 的问题,而且引用中错误的 messageId 会是正确 messageId 的 16 位补码,推断是 core 对好友引用消息的 messageId 生成错误了