deleteUsersFromChannel

abstract suspend fun deleteUsersFromChannel(channel: Channel, contactsId: List<String>): RainbowResult<Pair<List<ChannelUser>, List<String>>>

Delete users from a channel by removing their affiliation.

This method removes users from the specified channel. The users will no longer be affiliated with the channel. The operation is performed by removing the users' affiliations, and any users that were successfully removed will be returned along with the list of contact IDs that failed to be removed. Removing users is equivalent to setting their affiliation type to ChannelUserAffiliationType.NONE.

Return

A RainbowResult containing a pair of lists:

  • A list of ChannelUser objects representing the users whose affiliations were successfully removed.

  • A list of String containing the contact IDs that failed to be removed.

Parameters

channel

The Channel object from which the users' affiliations will be removed.

contactsId

A list of String containing the contact IDs of the users to be removed from the channel.


abstract suspend fun deleteUsersFromChannel(    channel: Channel,     contacts: ArrayList<IRainbowContact>): RainbowResult<Pair<List<ChannelUser>, List<String>>>

Delete users from a channel by removing their affiliation.

This method removes users from the specified channel based on their contact information. The users will no longer be affiliated with the channel. The operation is performed by removing the users' affiliations, and any users that were successfully removed will be returned along with the list of contacts that failed to be removed. Removing users is equivalent to setting their affiliation type to ChannelUserAffiliationType.NONE.

Return

A RainbowResult containing a pair of lists:

  • A list of ChannelUser objects representing the users whose affiliations were successfully removed.

  • A list of String containing the contact IDs that failed to be removed.

Parameters

channel

The Channel object from which the users' affiliations will be removed.

contacts

A list of IRainbowContact objects representing the users to be removed from the channel.