openimsdk / open-im-server

IM Chat
https://openim.io
Apache License 2.0
13.9k stars 2.44k forks source link

When the backend sends a message through RestAPI, there is no ex field, and after adding more ex fields to send the message, the front end cannot receive the ex field. #2135

Closed BobBaoDengKe closed 1 week ago

BobBaoDengKe commented 6 months ago

What happened?

后端通过RestAPI发送消息时,文档没有ex字段,发送者自己额外发送ex字段后,前端通过websocket也未拿到ex字段。

前端通过jssdk发送消息时是有ex字段的,使用docker部署,openim-server release-v3.4

image

What did you expect to happen?

希望发布新版本,加上ex字段

How can we reproduce it (as minimally and precisely as possible)?

Anything else we need to know?

No response

version

```console $ {name} version # paste output here 这个镜像版本:openim-server release-v3.4

Cloud provider

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

kubbot commented 6 months ago

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.

kubbot commented 4 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

skiffer-git commented 1 week ago

I recommend updating to release-v3.8. If you run into any new issues, please reopen this issue or create a new one.

skiffer-git commented 1 week ago

{ "sendID": "openIMAdmin", "recvID": "2839678182", "groupID": "", "senderNickname": "openIMAdmin-Gordon", "senderFaceURL": "http://www.head.com", "senderPlatformID": 1, "content": { "content": "hello!!" }, "contentType": 101, "sessionType": 1, "isOnlineOnly": false, "notOfflinePush": false, "sendTime": 1695212630740, "offlinePushInfo": { "title": "send message", "desc": "", "ex": "", "iOSPushSound": "default", "iOSBadgeCount": true }, "ex": "ex" }