Skip to main content

dismissGroup

Feature Introduction

Description

Disband the group; only the group owner can call this.

Note

The group status field will be set to "disbanded" in the background. When group members fetch the list of groups they've joined, this group will no longer be returned.

Relevant callbacks: onGroupDismissed

Function Prototype


- (void)dismissGroup:(NSString *)groupID
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameData TypeMandatoryDescription
groupIDNSStringYesGroup ID

Return Result

Parameter NameData TypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example


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