mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 21:26:57 +02:00
refactor completed
This commit is contained in:
+2
-2
@@ -27,7 +27,7 @@ extension MatrixListItemData {
|
||||
if parentSpaceIds.isEmpty {
|
||||
detailText = nil
|
||||
} else {
|
||||
if let spaceName = spaceService.getSpace(withId: parentSpaceIds.first ?? "")?.summary?.displayname {
|
||||
if let spaceName = spaceService.getSpace(withId: parentSpaceIds.first ?? "")?.summary?.displayName {
|
||||
let count = parentSpaceIds.count - 1
|
||||
switch count {
|
||||
case 0:
|
||||
@@ -51,6 +51,6 @@ extension MatrixListItemData {
|
||||
} else {
|
||||
type = .room
|
||||
}
|
||||
self.init(id: mxRoom.roomId, type: type, avatar: mxRoom.avatarData, displayName: mxRoom.summary.displayname, detailText: detailText)
|
||||
self.init(id: mxRoom.roomId, type: type, avatar: mxRoom.avatarData, displayName: mxRoom.summary.displayName, detailText: detailText)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ final class SpaceCreationCoordinator: Coordinator {
|
||||
init(parameters: SpaceCreationCoordinatorParameters) {
|
||||
let title: String
|
||||
let message: String
|
||||
if let parentSpaceId = parameters.parentSpaceId, let parentSpaceName = parameters.session.spaceService.getSpace(withId: parentSpaceId)?.summary?.displayname {
|
||||
if let parentSpaceId = parameters.parentSpaceId, let parentSpaceName = parameters.session.spaceService.getSpace(withId: parentSpaceId)?.summary?.displayName {
|
||||
title = VectorL10n.spacesSubspaceCreationVisibilityTitle
|
||||
message = VectorL10n.spacesSubspaceCreationVisibilityMessage(parentSpaceName)
|
||||
} else {
|
||||
|
||||
+2
-2
@@ -77,7 +77,7 @@ class SpaceSelectorService: SpaceSelectorServiceProtocol {
|
||||
return nil
|
||||
}
|
||||
|
||||
return summary.displayname
|
||||
return summary.displayName
|
||||
}
|
||||
|
||||
// MARK: Public
|
||||
@@ -117,7 +117,7 @@ private extension SpaceSelectorListItemData {
|
||||
|
||||
return SpaceSelectorListItemData(id: summary.roomId,
|
||||
avatar: summary.room.avatarData,
|
||||
displayName: summary.displayname,
|
||||
displayName: summary.displayName,
|
||||
notificationCount: notificationState?.groupMissedDiscussionsCount ?? 0,
|
||||
highlightedNotificationCount: notificationState?.groupMissedDiscussionsHighlightedCount ?? 0,
|
||||
hasSubItems: !space.childSpaces.isEmpty,
|
||||
|
||||
Reference in New Issue
Block a user