refactor completed

This commit is contained in:
Mauro Romito
2023-03-06 14:59:03 +01:00
parent 72bbf08dc3
commit fc1c22c08c
49 changed files with 72 additions and 72 deletions
@@ -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)
}
}