Sending queue : disable edition of local echo
This commit is contained in:
parent
71b6482094
commit
1b411c3c4b
2 changed files with 2 additions and 4 deletions
|
|
@ -181,7 +181,7 @@ class ActionListPresenter @Inject constructor(
|
||||||
add(TimelineItemAction.Forward)
|
add(TimelineItemAction.Forward)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (timelineItem.isMine && timelineItem.isTextMessage) {
|
if (timelineItem.isEditable) {
|
||||||
add(TimelineItemAction.Edit)
|
add(TimelineItemAction.Edit)
|
||||||
}
|
}
|
||||||
if (timelineItem.content.canBeCopied()) {
|
if (timelineItem.content.canBeCopied()) {
|
||||||
|
|
|
||||||
|
|
@ -326,9 +326,7 @@ class RustTimeline(
|
||||||
specialModeEventTimelineItem = null
|
specialModeEventTimelineItem = null
|
||||||
}
|
}
|
||||||
transactionId != null -> {
|
transactionId != null -> {
|
||||||
inner.getEventTimelineItemByTransactionId(transactionId.value).use {
|
error("Editing local echo is not supported yet.")
|
||||||
inner.redactEvent(item = it, reason = null)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
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