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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user