From 2739aa8ba573c1ec7a2d7c4228bfd8601a927922 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 4 Nov 2022 09:27:16 +0000 Subject: [PATCH] fixing test compilation errors --- chat-engine/src/testFixtures/kotlin/fixture/Fixtures.kt | 3 +-- .../test/kotlin/app/dapk/st/messenger/MessengerReducerTest.kt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/chat-engine/src/testFixtures/kotlin/fixture/Fixtures.kt b/chat-engine/src/testFixtures/kotlin/fixture/Fixtures.kt index b36c6be..1b00d15 100644 --- a/chat-engine/src/testFixtures/kotlin/fixture/Fixtures.kt +++ b/chat-engine/src/testFixtures/kotlin/fixture/Fixtures.kt @@ -28,8 +28,7 @@ fun anEncryptedRoomMessageEvent( author: RoomMember = aRoomMember(), meta: MessageMeta = MessageMeta.FromServer, edited: Boolean = false, - redacted: Boolean = false, -) = RoomEvent.Message(eventId, utcTimestamp, content, author, meta, edited, redacted) +) = RoomEvent.Message(eventId, utcTimestamp, content, author, meta, edited) fun aRoomImageMessageEvent( eventId: EventId = anEventId(), diff --git a/features/messenger/src/test/kotlin/app/dapk/st/messenger/MessengerReducerTest.kt b/features/messenger/src/test/kotlin/app/dapk/st/messenger/MessengerReducerTest.kt index 91c0540..5ac645d 100644 --- a/features/messenger/src/test/kotlin/app/dapk/st/messenger/MessengerReducerTest.kt +++ b/features/messenger/src/test/kotlin/app/dapk/st/messenger/MessengerReducerTest.kt @@ -28,7 +28,6 @@ private const val READ_RECEIPTS_ARE_DISABLED = true private val A_ROOM_ID = aRoomId("messenger state room id") private const val A_MESSAGE_CONTENT = "message content" private val AN_EVENT_ID = anEventId("state event") -private const val ROOM_IS_MUTED = true private val A_SELF_ID = aUserId("self") private val A_MESSENGER_PAGE_STATE = aMessengerStateWithEvent(AN_EVENT_ID, A_SELF_ID) private val A_MESSAGE_ATTACHMENT = MessageAttachment(AndroidUri("a-uri"), MimeType.Image) @@ -314,6 +313,7 @@ class MessengerReducerTest { originalMessage = when (this) { is RoomEvent.Image -> TODO() is RoomEvent.Reply -> TODO() + is RoomEvent.Redacted -> TODO() is RoomEvent.Message -> this.content.asString() is RoomEvent.Encrypted -> error("Should never happen") },