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

[Other] The client SDK is listening to onConversationChanged but hasn’t received the conversation EX information. #2809

Open
yushuiying opened this issue Oct 30, 2024 · 4 comments
Labels
other Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@yushuiying
Copy link

What would you like to share?

我调用服务端 createGroup 创群接口之后, 再调用 rpc的更新会话: s.conversationRpcClient.Client.SetConversations , 两个方法中都传了EX 信息, 但是客户端SDK 监听 onConversationChanged,没有获取到会话EX信息, openimserver 用的是3.8.0版本,请问是什么原因?

Additional information

No response

@yushuiying yushuiying added the other Indicates an issue or PR lacks a `triage/foo` label and requires one. label Oct 30, 2024
@OpenIM-Robot
Copy link

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

@FGadvancer
Copy link
Member

It seems like there are two conversation changes happening. The first change is triggered by the group creation message (this change shouldn’t include the conversation EX information, as creating the group doesn’t alter the EX information). The second change is caused by calling the RPC interface to update the conversation, which should include the updated EX information. Is this the situation you’re experiencing?

@FGadvancer FGadvancer changed the title 客户端SDK 监听 onConversationChanged,没有获取到会话EX信息 [Other] The client SDK is listening to onConversationChanged but hasn’t received the conversation EX information. Oct 30, 2024
@yushuiying
Copy link
Author

现在情况有发生变化,我的操作流程是这样的,先创群, 再 调用 rpc的更新会话: s.conversationRpcClient.Client.SetConversations, 再发送群消息, 这三个操作,客户端SDK 监听 onConversationChanged,如果客户端一直在线的情况, 会话EX是有获取到的, 但是如果客户端不在线的情况先按上面的流程操作, 之后客户端再登录聊天界面拉取会话时, 这时拉到的会话也是没有EX 信息的

@OpenIM-Robot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Now the situation has changed. My operation process is as follows. First create a group, then call the rpc update session: s.conversationRpcClient.Client.SetConversations, and then send the group message. For these three operations, the client SDK monitors onConversationChanged. If If the client is always online, the session EX will be obtained. However, if the client is not online, follow the above process first. Then when the client logs in to the chat interface to pull the session, the pulled session will not be available. EX information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants