- Android
- iOS
- JavaScript
- Flutter
- ReactNative
Remove conversations from a tag. The operation is automatically synchronized to the current user devices.
API Definition
/**
* remove conversations from a tag
* @param conversations conversation list
* @param tagId tag ID
* @param callback result callback
*/
void removeConversationsFromTag(List<Conversation> conversations, String tagId, ISimpleCallback callback);
Remove conversations from a tag. The operation is automatically synchronized to the current user devices.
API Definition
/// remove conversations from a tag
/// - Parameters:
/// - conversationList: list of conversations to remove
/// - tagId: tag ID
/// - successBlock: success callback
/// - errorBlock: failure callback
- (void)removeConversationList:(NSArray <JConversation *> *)conversationList
fromTag:(NSString *)tagId
success:(void (^)(void))successBlock
error:(void (^)(JErrorCode code))errorBlock;
Remove conversations from a tag. The operation is automatically synchronized to the current user devices.
Parameters
| Name | Type | Required | Default | Description | Version |
|---|---|---|---|---|---|
| tag | Object | Yes | Tag object | 1.7.5 | |
| tag.id | String | Yes | Tag ID. Developers can customize it; the maximum length is 64 characters. | 1.7.5 | |
| tag.conversations | Array | Yes | Conversation list. See the code example for details. | 1.7.5 |
Success Callback
No parameters are returned. The callback indicates success when invoked.
Failure Callback
| Name | Type | Description | Version |
|---|---|---|---|
| error | Object | A status code is provided when sending fails. Check error.msg directly or see status codes. | 1.0.0 |
Code Example
let { ConversationType } = JIM;
let tag = {
id: 'tag_01',
conversations: [
{ conversationType: ConversationType.PRIVATE, conversationId: 'userId01' }
]
};
jim.removeConversationsFromTag(tag).then(() => {
console.log('removeConversationsFromTag successfully')
}, (error) => {
console.log(error)
});
Not supported.
Remove conversations from a tag. The operation is automatically synchronized to the current user devices.
API Definition
/**
* remove conversations from a tag
* @param tagId tag ID
* @param conversations conversation list
*/
removeConversationsFromTag(tagId: string, conversations: Array<{
conversationType: number;
conversationId: string;
}>): Promise<void>;
Code Example
import JuggleIM from 'juggleim-rnsdk';
await JuggleIM.removeConversationsFromTag('tag_01', [
{
conversationType: 1,
conversationId: 'userId01'
}
]);