diff --git a/chat-engine b/chat-engine index 44d8108..0417816 160000 --- a/chat-engine +++ b/chat-engine @@ -1 +1 @@ -Subproject commit 44d8108649e0f63f2745e9f576f1095a9a0c61ca +Subproject commit 04178168e2107c8a11d8259d7cb3be499f55f30c diff --git a/features/profile/src/main/kotlin/app/dapk/st/profile/state/ProfileReducer.kt b/features/profile/src/main/kotlin/app/dapk/st/profile/state/ProfileReducer.kt index 1badceb..9955e86 100644 --- a/features/profile/src/main/kotlin/app/dapk/st/profile/state/ProfileReducer.kt +++ b/features/profile/src/main/kotlin/app/dapk/st/profile/state/ProfileReducer.kt @@ -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 = {} ) diff --git a/features/profile/src/test/kotlin/app/dapk/st/profile/state/ProfileReducerTest.kt b/features/profile/src/test/kotlin/app/dapk/st/profile/state/ProfileReducerTest.kt index e5849e5..9ab036a 100644 --- a/features/profile/src/test/kotlin/app/dapk/st/profile/state/ProfileReducerTest.kt +++ b/features/profile/src/test/kotlin/app/dapk/st/profile/state/ProfileReducerTest.kt @@ -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)) }