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

支持获取消息记录 (漫游消息) #1520

Merged
merged 5 commits into from
Sep 18, 2021
Merged

支持获取消息记录 (漫游消息) #1520

merged 5 commits into from
Sep 18, 2021

Conversation

Him188
Copy link
Member

@Him188 Him188 commented Sep 4, 2021

  • API
  • friend
  • [ ] group
  • [ ] stranger
  • [ ] group temp

经测试, 仅好友消息支持漫游

@Him188 Him188 added t:feature 类型: 新特性 x:protocol 属性: 协议相关 labels Sep 4, 2021
@Him188 Him188 added this to the 2.8.0-M1 milestone Sep 4, 2021
@Him188 Him188 marked this pull request as ready for review September 4, 2021 14:11
@Him188
Copy link
Member Author

Him188 commented Sep 4, 2021

不知道是否需要提交密码, 测试可以用

@Him188 Him188 linked an issue Sep 4, 2021 that may be closed by this pull request
@sandtechnology
Copy link
Collaborator

不知道是否需要提交密码, 测试可以用

第一次使用时需要验证,这个密码锁存在很久时间了

@sandtechnology
Copy link
Collaborator

但是一般的机器人账户应该不会有这玩意(

@zhaodice
Copy link
Contributor

zhaodice commented Sep 4, 2021

但是一般的机器人账户应该不会有这玩意(

可以在存在锁的情况下通过一定方式让程序检测到(如抛异常),从而提醒用户取消密码锁。

@Him188 Him188 requested a review from Karlatemp September 4, 2021 15:44
@Him188
Copy link
Member Author

Him188 commented Sep 4, 2021

@zhaodice 不知道遇到锁会得到什么返回,打算先放现在这个测试版出去

@Him188 Him188 merged commit ef301cc into dev Sep 18, 2021
@Him188 Him188 deleted the roaming_messages branch September 18, 2021 11:37
@sxzz
Copy link

sxzz commented Oct 3, 2021

不知道是否需要提交密码, 测试可以用

@Him188 我的设置了密码(似乎无法取消了),无法获取消息。以下是调试信息

2021-10-04 04:17:05 V/Net 1********7: Send: MessageSvc.PbGetRoamMsg(MessageSvc.PbGetRoamMsg)
2021-10-04 04:17:06 V/Net 1********7: Recv: MessageSvc.PbGetRoamMsg
resp = {MsgSvc$PbGetRoamMsgResp@6613} net.mamoe.mirai.internal.network.protocol.data.proto.MsgSvc$PbGetRoamMsgResp@5eecac0e
 result = 1
 errmsg = ""
 peerUin = 9********4
 lastMsgtime = 9223372036854775807
 random = 2642767681
 msg = {EmptyList@6622} []
 sig = {byte[0]@6623} []
 _errorCode {int} 
 _errorMessage {java.lang.String} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:feature 类型: 新特性 x:protocol 属性: 协议相关
Projects
None yet
Development

Successfully merging this pull request may close these issues.

支持获取离线消息
5 participants