openimsdk / open-im-server

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

[BUG] After kicking out the owner through the API, the group cannot be dismissed #2361

Closed yanqinsc closed 4 weeks ago

yanqinsc commented 3 months ago

OpenIM Server Version

3.7

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

The api group/kick_group can kick owner out of group,then the group cannot be dismissed nor set owner again

Screenshots Link

https://docs.openim.io/zh-Hans/restapi/apis/groupManagement/kickGroup

kubbot commented 3 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.

printlin commented 3 months ago

有API可以解散群呀,https://docs.openim.io/zh-Hans/restapi/apis/groupManagement/dismissGroup。通过此API无法解散吗? 如果可以通过API解散,我认为你应该在自身的业务上处理此问题。

kubbot commented 3 months ago

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


There is an API to disband a group, https://docs.openim.io/zh-Hans/restapi/apis/groupManagement/dismissGroup. Is it not possible to dismiss via this API? If it can be dismissed via API, I think you should handle this in your own business.

skiffer-git commented 1 month ago

The group owner cannot be removed from a group chat. You must first transfer ownership of the group before attempting to remove the current owner.

skiffer-git commented 1 month ago

Could you confirm whether the API allows for the removal of a group owner from a group chat? @icey-yu

icey-yu commented 4 weeks ago

In the latest version, we have resolved this issue.