CometChatTransferOwnership
is a Component that allows the current owner or administrator of a group to transfer the ownership rights and administrative control of that group to another user. By transferring ownership, the original owner can designate a new user as the group owner, giving them full control and administrative privileges over the group.
Here are some key points regarding the transfer ownership feature in CometChat:
onTransferOwnership
action is activated when you make a selection and press the done icon. This action takes place after the ownership has been transferred.
This action does not come with any predefined behavior. However, you have the flexibility to override this event and tailor it to suit your needs using the following code snippet.
OnBack
is triggered when you click on the back button of the Transfer Ownership component. You can override this action using the following code snippet.
Methods | Type | Description |
---|---|---|
setLimit | number | sets the number of group members that can be fetched in a single request, suitable for pagination |
setSearchKeyword | string | used for fetching group members matching the passed string |
setScopes | Array<string> | used for fetching group members based on multiple scopes |
Component
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
Events emitted by the Add Members component is as follows.
Event | Description |
---|---|
ccOwnershipChanged | Triggers when the group ownership is successfully transferred |
GroupMemberStyle
to the Transfer Ownership Component to customize the styling. For further insights on GroupMember
Styles refer
Avatar
component in the Banned Members Component, you can use the following code snippet. For further insights on Avatar
Styles refer
ListItemStyle
component in the Banned Members
Component, you can use the following code snippet. For further insights on ListItemStyle
Styles refer
ListItemView
to the Transfer Ownership Component.
Example
SubtitleView
view for each banned members to meet your requirements
LoadingStateView
to match the loading view of your app.
EmptyStateView
using EmptyStateView
to match the empty view of your app.