Skip to main content

acceptGroupApplication

Function Description

Note

The group owner or admin approves the group joining request. After approval, the applicant will join the group.

Warning

Once the request to join the group is accepted, neither the admin nor the group owner can make further operations.

Related Callbacks: onGroupApplicationAccepted onGroupMemberAdded onJoinedGroupAdded

Function Prototype


- (void)acceptGroupApplication:(NSString *)groupID
fromUserId:(NSString *)fromUserID
handleMsg:(NSString * _Nullable)handleMsg
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
groupIDNSStringYesGroup ID
fromUserIDNSStingYesID of the user initiating the request
handleMsgNSStingNoMessage

Return Results

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccessful return
onFailureOIMFailureCallbackFailed return

Code Example


[OIMManager.manager acceptGroupApplication:@""
fromUserId:@""
handleMsg:@""
onSuccess:^(NSString * _Nullable data) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];