removeMembership

fun Channel.removeMembership(currentUserId: String?): Channel

Sets Channel.membership to null if currentUserId equals to membership.user.id.

Parameters

currentUserId

User id of the currently logged in user.