Skip to main content

refuseGroupApplication

Feature Introduction

Description

Deny group membership application.

Caution

(1) Only the group owner or group administrator can call this; (2) Once the group membership request is rejected, administrators and the group owner cannot operate further.

Related Callback: onGroupApplicationRejected

Function Prototype


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

Input Parameters

Parameter NameParameter TypeMandatoryDescription
groupIDNSStringYesGroup ID
fromUserIDNSStingYesApplicant's userID
handleMsgNSStingNoReason for denial

Return Value

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccessful return
onFailureOIMFailureCallbackFailure return

Code Example


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