Skip to content

Commit 0348d03

Browse files
committed
Rust sdk : handle api changes (draft and edit)
1 parent 59faf0d commit 0348d03

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/draft/ComposerDraftMapper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ package io.element.android.libraries.matrix.impl.room.draft
1919
import io.element.android.libraries.matrix.api.core.EventId
2020
import io.element.android.libraries.matrix.api.room.draft.ComposerDraft
2121
import io.element.android.libraries.matrix.api.room.draft.ComposerDraftType
22-
import uniffi.matrix_sdk_base.ComposerDraft as RustComposerDraft
23-
import uniffi.matrix_sdk_base.ComposerDraftType as RustComposerDraftType
22+
import org.matrix.rustcomponents.sdk.ComposerDraft as RustComposerDraft
23+
import org.matrix.rustcomponents.sdk.ComposerDraftType as RustComposerDraftType
2424

2525
internal fun ComposerDraft.into(): RustComposerDraft {
2626
return RustComposerDraft(

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/RustTimeline.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class RustTimeline(
327327
runCatching<Unit> {
328328
when {
329329
originalEventId != null -> {
330-
inner.edit(
330+
inner.editByEventId(
331331
newContent = messageEventContentFromParts(body, htmlBody).withMentions(mentions.map()),
332332
eventId = originalEventId.value,
333333
)

0 commit comments

Comments
 (0)