Redact and event ID, not an item ID.

This commit is contained in:
Doug
2022-09-14 12:19:24 +01:00
committed by Doug
parent f19240d2f6
commit 91795a0d19
9 changed files with 14 additions and 14 deletions
@@ -150,7 +150,7 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
displayError(.alert(ElementL10n.roomTimelinePermalinkCreationFailure))
}
case .redact:
redactItem(itemId)
redact(itemId)
}
}
@@ -163,9 +163,9 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
}
}
private func redactItem(_ itemID: String) {
private func redact(_ eventID: String) {
Task {
await timelineController.redactItem(itemID)
await timelineController.redact(eventID)
}
}
}