Transform MessageEventType and StateEventType into sealed interfaces to handle the Custom variant, also add missing variants

This commit is contained in:
Jorge Martín 2025-12-22 10:09:37 +01:00 committed by Jorge Martin Espinosa
parent 63d205f8aa
commit 75f8c4f594
16 changed files with 230 additions and 164 deletions

View file

@ -1236,7 +1236,7 @@ class MessagesPresenterTest {
) = FakeRoomPermissions(
canSendState = { type ->
when (type) {
StateEventType.CALL_MEMBER -> canStartCall
StateEventType.CallMember -> canStartCall
else -> lambdaError()
}
},