reused the room details view model for the space settings screen

This commit is contained in:
Mauro Romito
2025-10-31 14:23:08 +01:00
committed by Mauro
parent dc9ab56972
commit e59870b1e7
11 changed files with 103 additions and 222 deletions
@@ -77,7 +77,7 @@ struct RoomDetailsScreenViewState: BindableState {
knockingEnabled && dmRecipientInfo == nil && canEditRolesOrPermissions
}
var canEdit: Bool {
var canEditBaseInfo: Bool {
!isDirect && (canEditRoomName || canEditRoomTopic || canEditRoomAvatar)
}