mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Handle breaking change in innerRoom.edit()
This commit is contained in:
+4
-1
@@ -238,7 +238,10 @@ class RustMatrixRoom(
|
|||||||
withContext(roomDispatcher) {
|
withContext(roomDispatcher) {
|
||||||
if (originalEventId != null) {
|
if (originalEventId != null) {
|
||||||
runCatching {
|
runCatching {
|
||||||
innerRoom.edit(messageEventContentFromParts(body, htmlBody), originalEventId.value)
|
innerRoom.edit(
|
||||||
|
newContent = messageEventContentFromParts(body, htmlBody),
|
||||||
|
editItem = innerRoom.getEventTimelineItemByEventId(originalEventId.value),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
runCatching {
|
runCatching {
|
||||||
|
|||||||
Reference in New Issue
Block a user