mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix various new SDK breaking changes.
This commit is contained in:
committed by
Stefan Ceriu
parent
ffe2f726e7
commit
bd49500fa1
@@ -294,7 +294,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
||||
}
|
||||
}
|
||||
|
||||
func reportRoom(reason: String?) async -> Result<Void, RoomProxyError> {
|
||||
func reportRoom(reason: String) async -> Result<Void, RoomProxyError> {
|
||||
do {
|
||||
try await room.reportRoom(reason: reason)
|
||||
return .success(())
|
||||
|
||||
@@ -12,9 +12,9 @@ final class RoomPreviewProxy: RoomPreviewProxyProtocol {
|
||||
|
||||
let info: RoomPreviewInfoProxy
|
||||
|
||||
init(roomPreview: RoomPreview) throws {
|
||||
init(roomPreview: RoomPreview) {
|
||||
self.roomPreview = roomPreview
|
||||
info = try .init(roomPreviewInfo: roomPreview.info())
|
||||
info = .init(roomPreviewInfo: roomPreview.info())
|
||||
}
|
||||
|
||||
var ownMembershipDetails: RoomMembershipDetailsProxyProtocol? {
|
||||
|
||||
@@ -101,7 +101,7 @@ protocol JoinedRoomProxyProtocol: RoomProxyProtocol {
|
||||
|
||||
func reportContent(_ eventID: String, reason: String?) async -> Result<Void, RoomProxyError>
|
||||
|
||||
func reportRoom(reason: String?) async -> Result<Void, RoomProxyError>
|
||||
func reportRoom(reason: String) async -> Result<Void, RoomProxyError>
|
||||
|
||||
func leaveRoom() async -> Result<Void, RoomProxyError>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user