openim-docker icon indicating copy to clipboard operation
openim-docker copied to clipboard

[BUG] webhook of "Callback Before Message Push in Online Status" is not able for group msg

Open aningco opened this issue 1 year ago • 3 comments

OpenIM Server Version

v3.8.2-alpha.2

Operating System and CPU Architecture

Linux (ARM)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

After enable the webhook of "Callback Before Message Push in Online Status", our bussiness system can receive the callback for single chat for those user in online status before messages are sent to the client, while group chat is not work.

Screenshots Link

please note that related webhook,yml as below image

aningco avatar Dec 02 '24 09:12 aningco

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.

OpenIM-Robot avatar Dec 02 '24 09:12 OpenIM-Robot

Group msg will call beforeGroupOnlinePush instead. They have different request bodies.

icey-yu avatar Dec 10 '24 07:12 icey-yu

  • Copy all configs from dir to config directory in this package
  • Add volume volumes: - "${DATA_DIR}/config:/openim-server/config" to openim-server image in docker-compose.yaml
  • Change webhooks
  • Run docker-compose down
  • Run docker-compose up -d

It worked for me

c2pc avatar Dec 17 '24 20:12 c2pc