open-im-sdk-web-wasm icon indicating copy to clipboard operation
open-im-sdk-web-wasm copied to clipboard

[BUG] After setting the ex extension field on the server side, manually calling getConversationListSplit on the client side cannot obtain the latest data.

Open liJian55 opened this issue 8 months ago • 3 comments

OpenIM Server Version

3.8.3-patch.3

Operating System and CPU Architecture

Windows (ARM)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

服务端在创建会话和群聊时设置了ex拓展字段,客户端这边首次进入页面调用getConversationListSplit可以获取到最新含ex拓展字段的会话(从控制台查看有http请求),当客户端第二次调用(未刷新页面,再次调用SDK方法)getConversationListSplit获取会话列表时获取到的会话列表无ex拓展字段(无http请求),通过从会话列表获取到的单个群组ID再次调用IMSDK.getSpecifiedGroupsInfo([groupID])方法,仍然无法获取到ex拓展字段

Screenshots Link

No response

liJian55 avatar Mar 30 '25 12:03 liJian55

What exactly does "Create conversation and group chat" mean? The server side does not have an API for creating conversations. Can you describe the specific operation steps in detail?

Bloomingg avatar Apr 09 '25 09:04 Bloomingg

“创建对话和群聊”具体是什么意思?服务器端没有创建对话的API,能详细说一下具体的操作步骤吗?

服务端创建群聊之后设置了群组和会话的ex属性并填充内容,客户端这边接收到会话变更的回调(OnConversationChanged)此时会话信息可以获取到ex属性的内容,如果客户端手动调用getConversationListSplit获取会话列表,返回来的数据ex字段是空字符串

liJian55 avatar Apr 12 '25 08:04 liJian55

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


What does "create conversations and group chats" mean? There is no API to create a conversation on the server side. Can you explain the specific operation steps in detail?

After the server creates a group chat, the ex attributes of the group and session are set and filled in the content. The client receives the onConversationChanged callback (OnConversationChanged). At this time, the session information can obtain the ex attribute content. If the client manually calls getConversationListSplit to get the session list, the returned data ex field is an empty string

OpenIM-Robot avatar Apr 12 '25 08:04 OpenIM-Robot