|
|
@ -36,10 +36,11 @@ object RoomMemberMapper { |
|
|
|
|
|
|
|
|
|
|
|
fun mapMembership(membershipState: RustMembershipState): RoomMembershipState = |
|
|
|
fun mapMembership(membershipState: RustMembershipState): RoomMembershipState = |
|
|
|
when (membershipState) { |
|
|
|
when (membershipState) { |
|
|
|
RustMembershipState.BAN -> RoomMembershipState.BAN |
|
|
|
RustMembershipState.Ban -> RoomMembershipState.BAN |
|
|
|
RustMembershipState.INVITE -> RoomMembershipState.INVITE |
|
|
|
RustMembershipState.Invite -> RoomMembershipState.INVITE |
|
|
|
RustMembershipState.JOIN -> RoomMembershipState.JOIN |
|
|
|
RustMembershipState.Join -> RoomMembershipState.JOIN |
|
|
|
RustMembershipState.KNOCK -> RoomMembershipState.KNOCK |
|
|
|
RustMembershipState.Knock -> RoomMembershipState.KNOCK |
|
|
|
RustMembershipState.LEAVE -> RoomMembershipState.LEAVE |
|
|
|
RustMembershipState.Leave -> RoomMembershipState.LEAVE |
|
|
|
|
|
|
|
is RustMembershipState.Custom -> TODO() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|