Draft : code cleanup

This commit is contained in:
ganfra 2024-06-26 12:15:00 +02:00
parent 029962c101
commit 644b425d71
14 changed files with 10 additions and 25 deletions

View file

@ -16,6 +16,4 @@
package io.element.android.libraries.di
abstract class RoomScope private constructor(
)
abstract class RoomScope private constructor()

View file

@ -27,7 +27,6 @@ import org.matrix.rustcomponents.sdk.RepliedToEventDetails
class InReplyToMapper(
private val timelineEventContentMapper: TimelineEventContentMapper,
) {
fun map(inReplyToDetails: InReplyToDetails): InReplyTo {
val inReplyToId = EventId(inReplyToDetails.eventId)
return when (val event = inReplyToDetails.event) {

View file

@ -62,5 +62,4 @@ dependencies {
testImplementation(libs.test.mockk)
testImplementation(libs.test.robolectric)
testImplementation(libs.androidx.compose.ui.test.junit)
}

View file

@ -139,7 +139,6 @@ class InReplyToDetailsOtherProvider : InReplyToDetailsProvider() {
)
}
private fun aMessageContent(
body: String,
type: MessageType,

View file

@ -39,8 +39,8 @@ import io.element.android.compound.theme.ElementTheme
import io.element.android.compound.tokens.generated.CompoundIcons
import io.element.android.libraries.designsystem.theme.components.Icon
import io.element.android.libraries.designsystem.theme.components.Text
import io.element.android.libraries.matrix.ui.messages.reply.InReplyToView
import io.element.android.libraries.matrix.ui.messages.reply.InReplyToDetails
import io.element.android.libraries.matrix.ui.messages.reply.InReplyToView
import io.element.android.libraries.textcomposer.model.MessageComposerMode
import io.element.android.libraries.ui.strings.CommonStrings

View file

@ -35,7 +35,7 @@ sealed interface MessageComposerMode {
val content: String
) : Special
class Reply(
data class Reply(
val replyToDetails: InReplyToDetails
) : Special {
val eventId: EventId = replyToDetails.eventId()