Removed unused context menu + some unused code cleaning (#2487)

This commit is contained in:
Mauro
2024-02-20 14:36:04 +01:00
committed by GitHub
parent 6f0dd83b1e
commit d380c2de56
19 changed files with 786 additions and 887 deletions
@@ -410,16 +410,6 @@ class RoomProxy: RoomProxyProtocol {
}
}
func getIsFavourite() async -> Result<Bool, RoomProxyError> {
do {
let result = try await room.roomInfo().isFavourite
return .success(result)
} catch {
MXLog.error("Failed retrieving isFavourite for room: \(id) with error: \(error)")
return .failure(.failedRetrievingIsFavourite)
}
}
func flagAsFavourite(_ isFavourite: Bool) async -> Result<Void, RoomProxyError> {
do {
try await room.setIsFavourite(isFavourite: isFavourite, tagOrder: nil)
@@ -34,7 +34,6 @@ enum RoomProxyError: Error, Equatable {
case failedFlaggingAsUnread
case failedMarkingAsRead
case failedSendingTypingNotice
case failedRetrievingIsFavourite
case failedFlaggingAsFavourite
}
@@ -42,9 +42,7 @@ enum SecureBackupControllerError: Error {
case failedGeneratingRecoveryKey
case failedConfirmingRecoveryKey
case failedFetchingSessionState
case failedUploadingForBackup
}
@@ -22,7 +22,6 @@ class UserSession: UserSessionProtocol {
private var cancellables = Set<AnyCancellable>()
private var checkSessionVerificationStateCancellable: AnyCancellable?
private var retrieveSessionVerificationControllerTask: Task<Void, Never>?
private var authErrorCancellable: AnyCancellable?