Timeline : re-enable edition of local echo
This commit is contained in:
parent
50c3e65998
commit
b5b89b7e98
1 changed files with 4 additions and 1 deletions
|
|
@ -333,7 +333,10 @@ class RustTimeline(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
transactionId != null -> {
|
transactionId != null -> {
|
||||||
error("Editing local echo is not supported yet.")
|
inner.edit(
|
||||||
|
newContent = messageEventContentFromParts(body, htmlBody).withMentions(mentions.map()),
|
||||||
|
item = inner.getEventTimelineItemByTransactionId(transactionId.value),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
error("Either originalEventId or transactionId must be non null")
|
error("Either originalEventId or transactionId must be non null")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue