remove Groups From Conversation
open fun removeGroupsFromConversation( @NonNull context: Context, @NonNull conversationId: String, @NonNull groups: List<String>, @Nullable callback: STWOperationCallback<MessagingError>)
Content copied to clipboard
Call this method to remove a group from a group conversation.
The given conversation should be a group group conversation (THREAD_TYPE_GROUP).
The user can remove a group from the given conversation, only if :
- he is a regular admin or an admin initiator in the conversation.
- the current conversation is exist and active.
- the removed group list belongs to the conversation
- this conversation is not related to a MyBusiness process.
- not an emergency conversation.
An event IConversationObservable will be delegated when the remove request is successfully done or failed.
Parameters
context
The application context
conversation Id
Conversation ID.
groups
The removed group list
callback
This callback will be invoked to handle operation result :
- Success : the remove conversation request is successfully sent to the server
- Error : a local error occurred when trying to remove group from the conversation