project-mirai / mirai-api-http

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

同步好友消息ID上下文主体绑定到自己 #695

Closed MDeath closed 11 months ago

MDeath commented 1 year ago

bot其他客户端发送消息给好友,好友回复时收到的Quote的是 {'type': 'Quote', 'id': 34030, 'senderId': 2907237958, 'targetId': 1064393873, 'groupId': 0, 'origin': [{'type': 'Plain', 'text': '[图片]'}]} 使用FromMessageId获取找不到对象 [GET] /messageFromId?sessionKey=YourSessionKey&messageId=34030&target=1064393873 实际上同步消息target绑定的不是好友id,是自己的id [GET] /messageFromId?sessionKey=YourSessionKey&messageId=34030&target=2907237958target换成bot的就行了,不知道这是故意的还是不小心的 image

ryoii commented 1 year ago

是故意不小心的(x

看了眼代码,感觉没有问题,除非 core 描述错了

不确定,我写个 test case 看看

cssxsh commented 1 year ago

@ryoii

https://github.com/mamoe/mirai/issues/2122

him188 强行套用 source 类型带来的问题

ryoii commented 1 year ago

非常有趣

Him188 commented 1 year ago

呜呜呜

ryoii commented 11 months ago

https://github.com/mamoe/mirai/issues/2122 已关闭