mirror of
https://github.com/ouchadam/small-talk.git
synced 2025-03-25 08:21:00 +01:00
Update engine
- Disables WIP verification events from being captured - Rename reject room
This commit is contained in:
parent
aab0d469ea
commit
339631dccd
chat-engine
features/profile/src
main/kotlin/app/dapk/st/profile/state
test/kotlin/app/dapk/st/profile/state
@ -1 +1 @@
|
||||
Subproject commit 44d8108649e0f63f2745e9f576f1095a9a0c61ca
|
||||
Subproject commit 04178168e2107c8a11d8259d7cb3be499f55f30c
|
@ -73,7 +73,7 @@ fun profileReducer(
|
||||
},
|
||||
|
||||
sideEffect(ProfileAction.RejectRoomInvite::class) { action, _ ->
|
||||
kotlin.runCatching { chatEngine.rejectJoinRoom(action.roomId) }.fold(
|
||||
kotlin.runCatching { chatEngine.rejectRoom(action.roomId) }.fold(
|
||||
onFailure = { errorTracker.track(it) },
|
||||
onSuccess = {}
|
||||
)
|
||||
|
@ -93,7 +93,7 @@ class ProfileReducerTest {
|
||||
|
||||
@Test
|
||||
fun `when RejectRoomInvite, then rejects room`() = runReducerTest {
|
||||
fakeChatEngine.expect { it.rejectJoinRoom(A_ROOM_ID) }
|
||||
fakeChatEngine.expect { it.rejectRoom(A_ROOM_ID) }
|
||||
|
||||
reduce(ProfileAction.RejectRoomInvite(A_ROOM_ID))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user