Draft : code cleanup
This commit is contained in:
parent
029962c101
commit
644b425d71
14 changed files with 10 additions and 25 deletions
|
|
@ -16,6 +16,4 @@
|
|||
|
||||
package io.element.android.libraries.di
|
||||
|
||||
abstract class RoomScope private constructor(
|
||||
|
||||
)
|
||||
abstract class RoomScope private constructor()
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -62,5 +62,4 @@ dependencies {
|
|||
testImplementation(libs.test.mockk)
|
||||
testImplementation(libs.test.robolectric)
|
||||
testImplementation(libs.androidx.compose.ui.test.junit)
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -139,7 +139,6 @@ class InReplyToDetailsOtherProvider : InReplyToDetailsProvider() {
|
|||
)
|
||||
}
|
||||
|
||||
|
||||
private fun aMessageContent(
|
||||
body: String,
|
||||
type: MessageType,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue