mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Removed unused context menu + some unused code cleaning (#2487)
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user