addMembership

fun Channel.addMembership(currentUserId: String, member: Member): Channel

Sets Channel.membership to member if currentUserId equals to member.getUserId().

Parameters

currentUserId

User id of the currently logged in user.

member

Added member.