Handle breaking change in innerRoom.edit()
This commit is contained in:
parent
8aba98de1d
commit
55154ce0b3
1 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue