Browse Source

Fix API break.

pull/3715/head
Benoit Marty 1 week ago
parent
commit
40b1ba58fb
  1. 11
      libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/member/RoomMemberMapper.kt

11
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/member/RoomMemberMapper.kt

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

Loading…
Cancel
Save