SDKsReact Native
接受入群申请
同意指定用户的入群申请。
调用 acceptGroupApplication() 同意指定用户的入群申请。
await OpenIMSDK.acceptGroupApplication({
groupID: application.groupID,
fromUserID: application.userID,
handleMsg: '同意加入',
});参数说明
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
groupID | string | 是 | 申请对应的群组 ID。 |
fromUserID | string | 是 | 申请人的用户 ID,对应申请记录的 userID。 |
handleMsg | string | 是 | 处理说明;没有说明时传空字符串。 |
调用完成后,入群申请已被同意。申请状态变化时会触发 OnGroupApplicationAccepted,完整监听方式见获取收到的入群申请。
这个页面有帮助吗?