Make the RoomInfo isPrivate field optional and handle it accordingly.

This commit is contained in:
Stefan Ceriu
2025-06-25 17:15:21 +03:00
committed by Stefan Ceriu
parent 11c7d07e76
commit bfd97cd560
6 changed files with 16 additions and 10 deletions
@@ -125,7 +125,7 @@ class RoomDetailsScreenViewModel: RoomDetailsScreenViewModelType, RoomDetailsScr
}
state.bindings.leaveRoomAlertItem = LeaveRoomAlertItem(roomID: roomProxy.id,
isDM: roomProxy.isDirectOneToOneRoom,
state: roomProxy.infoPublisher.value.isPrivate ? .private : .public)
state: roomProxy.infoPublisher.value.isPrivate ?? true ? .private : .public)
case .confirmLeave:
Task { await leaveRoom() }
case .processTapIgnore: