Browse SDKs · iOS
SDKsiOS

Dismiss a group

Dismiss a specified OpenIM group as its owner on iOS.

Copy
[[OIMManager manager] dismissGroup:groupID
    onSuccess:^(NSString * _Nullable data) { [self showDismissed]; }
    onFailure:^(NSInteger code, NSString *message) {
        [self showErrorCode:code message:message];
    }];

Only the group owner can dismiss a group. A successful callback means that the request has completed. Use onGroupDismissed: to synchronize other views and clients. Dismissing a group is different from deleting or hiding a conversation.