Fix various new SDK breaking changes.

This commit is contained in:
Stefan Ceriu
2025-07-22 18:09:27 +03:00
committed by Stefan Ceriu
parent ffe2f726e7
commit bd49500fa1
9 changed files with 26 additions and 26 deletions
@@ -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>