Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持发送嵌套的合并转发 #1198

Closed
Deficuet opened this issue Apr 17, 2021 · 3 comments · Fixed by #1667
Closed

支持发送嵌套的合并转发 #1198

Deficuet opened this issue Apr 17, 2021 · 3 comments · Fixed by #1667
Labels
N 优先级: 一般 t:enhancement 类型: 现有功能上的优化 t:feature 类型: 新特性 x:protocol 属性: 协议相关
Milestone

Comments

@Deficuet
Copy link

共五条消息,三张图片两个合并转发,塞进一个合并转发内主动发送。发送后在Android、ipad以及电脑的客户端上都只能看见那三张图,余下两个合并转发消失。console内显示正常发送。那两个合并转发使用的是RawForwardMessage构造后.render。之后与那三张图一起使用dsl构造一个转发消息发送。

2021-04-17 13:09:37 V/Net <Bot的ID>: [Highway] Uploading forward message to 203.205.234.144:8080, size=652 B
2021-04-17 13:09:39 V/Net <Bot的ID>: [Highway] Uploading forward message: succeed at 0 KiB/s
2021-04-17 13:09:39 V/Net <Bot的ID>: Send: MessageSvc.PbSendMsg
2021-04-17 13:09:39 V/Net <Bot的ID>: Recv: MessageSvcPbSendMsg.Response.SUCCESS
2021-04-17 13:09:39 V/Bot <Bot的ID>: Group(<目标群号>) <- ForwardMessage(preview=[<测试字符串>], title=<一般通过标题>, brief=[聊天记录], source=聊天记录, summary=查看 5 条转发消息, nodeList=[Node(senderId=<Bot的ID>, time=1618686551, senderName=<Bot的群名片>, messageChain=[mirai:image:{18D127FD-C59B-9033-737A-B51CE3D5A67E}.png]), Node(senderId=<Bot的ID>, time=1618686552, senderName=<Bot的群名片>, messageChain=[mirai:image:{1806F95A-2B25-E810-AB97-5708D15FE27C}.jpg]), Node(senderId=<Bot的ID>, time=1618686553, senderName=<Bot的群名片>, messageChain=[mirai:image:{956D8B23-3B6F-F8BB-CD7E-92510D5947B2}.jpg]), Node(senderId=<Bot的ID>, time=1618686554, senderName=<Bot的群名片>, messageChain=ForwardMessage(preview=[<测试字符串>], title=From 81139793, brief=[聊天记录], source=聊天记录, summary=查看 3 条转发消息, nodeList=[Node(senderId=<Bot的ID>, time=1618686564, senderName=<Bot的群名片>, messageChain=https://www.pixiv.net/artworks/81139793), Node(senderId=<Bot的ID>, time=1618686564, senderName=<Bot的群名片>, messageChain=[mirai:image:{132DDA3E-4548-7136-A0F1-6F3D5C6ED125}.jpg]), Node(senderId=<Bot的ID>, time=1618686564, senderName=<Bot的群名片>, messageChain=[mirai:image:{BEBA5C17-075D-EC0A-2870-8294CAEFDE23}.jpg])])), Node(senderId=<Bot的ID>, time=1618686555, senderName=<Bot的群名片>, messageChain=ForwardMessage(preview=[<测试字符串>], title=From 89034909, brief=[聊天 记录], source=聊天记录, summary=查看 5 条转发消息, nodeList=[Node(senderId=<Bot的ID>, time=1618686577, senderName=<Bot的群名片>, messageChain=https://www.pixiv.net/artworks/89034909), Node(senderId=<Bot的ID>, time=1618686577, senderName=<Bot的群名片>, messageChain=[mirai:image:{F5B347BB-C25E-6BF6-5459-39B62B44DC41}.jpg]), Node(senderId=<Bot的ID>, time=1618686577, senderName=<Bot的群名片>, messageChain=[mirai:image:{FFAA6579-E4E3-1583-35DF-353FB15F6A64}.jpg]), Node(senderId=<Bot的ID>, time=1618686577, senderName=<Bot的群名片>, messageChain=[mirai:image:{DE18DB57-D718-A92C-8841-8D738E8362F3}.jpg]), Node(senderId=<Bot的ID>, time=1618686577, senderName=<Bot的群名片>, messageChain=[mirai:image:{38334D08-0CA7-A2BA-848E-E920540051CA}.jpg])]))])

复现

  1. 三张图片分别使用messageChainOf转为消息链,分开的三条消息。
  2. 使用RawForwardMessage把nodeList转为合并转发消息
  3. 使用自定义的DisplayStrategy渲染RawForwardMessage
  4. 使用messageChainOf将多个渲染过的合并转发消息分别单独地转为消息链
  5. 在buildForwardMessage内用for循环says将以上多条消息链添加进该合并转发内,仍然使用自定义的DisplayStrategy
  6. 发送。目标为buildForwardMessage使用的Contact

版本

  • mirai-core: 2.6.1

补充信息

上述消息链一个个直接发送都是没有问题的,合并转发内容正常加载。只有套娃合并转发会出问题

最近观察到主动发送一些仅包含图片的合并转发不会被真正地发送出来,群友都不可见,尽管console里显示正常发送成功。不知道是否跟tx检查图片有关

@Deficuet Deficuet added the x:question 标签: 需要更多信息 label Apr 17, 2021
@Karlatemp
Copy link
Member

目前未支持发送嵌套的合并转发

@Karlatemp Karlatemp added t:enhancement 类型: 现有功能上的优化 t:feature 类型: 新特性 N 优先级: 一般 and removed x:question 标签: 需要更多信息 labels Apr 18, 2021
@Karlatemp Karlatemp changed the title bot主动发送嵌套的合并转发似乎仍然存在问题?内部包含的多条合并转发消息全部消失 支持发送嵌套的合并转发 Apr 18, 2021
@Deficuet
Copy link
Author

好吧,还以为修了#1130之后能发了(

@Karlatemp Karlatemp added the x:protocol 属性: 协议相关 label Apr 18, 2021
@Him188 Him188 added this to the Backlog milestone Apr 18, 2021
@Him188 Him188 modified the milestones: Backlog, 2.9 Jul 14, 2021
@Him188
Copy link
Member

Him188 commented Nov 9, 2021

2.9.0-RC: investigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 优先级: 一般 t:enhancement 类型: 现有功能上的优化 t:feature 类型: 新特性 x:protocol 属性: 协议相关
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants