mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Revert "Add redaction menu (disabled)."
This reverts commit bd4a698f8b.
This commit is contained in:
@@ -57,6 +57,4 @@ class MockRoomTimelineController: RoomTimelineControllerProtocol {
|
||||
func processItemDisappearance(_ itemId: String) async { }
|
||||
|
||||
func sendMessage(_ message: String) async { }
|
||||
|
||||
func redactItem(_ itemId: String) async { }
|
||||
}
|
||||
|
||||
@@ -104,13 +104,6 @@ class RoomTimelineController: RoomTimelineControllerProtocol {
|
||||
}
|
||||
}
|
||||
|
||||
func redactItem(_ itemId: String) async {
|
||||
switch await timelineProvider.redactItem(itemId) {
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
@objc private func contentSizeCategoryDidChange() {
|
||||
|
||||
@@ -40,6 +40,4 @@ protocol RoomTimelineControllerProtocol {
|
||||
func paginateBackwards(_ count: UInt) async -> Result<Void, RoomTimelineControllerError>
|
||||
|
||||
func sendMessage(_ message: String) async
|
||||
|
||||
func redactItem(_ itemId: String) async
|
||||
}
|
||||
|
||||
@@ -59,13 +59,4 @@ class RoomTimelineProvider: RoomTimelineProviderProtocol {
|
||||
return .failure(.failedSendingMessage)
|
||||
}
|
||||
}
|
||||
|
||||
func redactItem(_ itemID: String) async -> Result<Void, RoomTimelineProviderError> {
|
||||
switch await roomProxy.redactItem(itemID) {
|
||||
case .success:
|
||||
return .success(())
|
||||
case .failure:
|
||||
return .failure(.failedRedactingItem)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ enum RoomTimelineProviderCallback {
|
||||
|
||||
enum RoomTimelineProviderError: Error {
|
||||
case failedSendingMessage
|
||||
case failedRedactingItem
|
||||
case generic
|
||||
}
|
||||
|
||||
@@ -36,6 +35,4 @@ protocol RoomTimelineProviderProtocol {
|
||||
func paginateBackwards(_ count: UInt) async -> Result<Void, RoomTimelineProviderError>
|
||||
|
||||
func sendMessage(_ message: String) async -> Result<Void, RoomTimelineProviderError>
|
||||
|
||||
func redactItem(_ itemID: String) async -> Result<Void, RoomTimelineProviderError>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user