From 339631dccda873bd1f1a38c7cf9ecba908d2a3d5 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Sat, 7 Jan 2023 12:28:06 +0000 Subject: [PATCH] Update engine - Disables WIP verification events from being captured - Rename reject room --- chat-engine | 2 +- .../src/main/kotlin/app/dapk/st/profile/state/ProfileReducer.kt | 2 +- .../test/kotlin/app/dapk/st/profile/state/ProfileReducerTest.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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)) }