mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
Fix room display name
This commit is contained in:
+3
-9
@@ -54,16 +54,10 @@ final class RoomCreationEventsModalViewModel: RoomCreationEventsModalViewModelTy
|
||||
return RoomCreationEventRowViewModel(title: nil)
|
||||
}
|
||||
var roomName: String? {
|
||||
if let name = roomState.name, name.count > 0 {
|
||||
return name
|
||||
guard let summary = session.roomSummary(withRoomId: roomState.roomId) else {
|
||||
return nil
|
||||
}
|
||||
if let aliases = roomState.aliases, aliases.count > 0 {
|
||||
return aliases.first
|
||||
}
|
||||
if let summary = session.roomSummary(withRoomId: roomState.roomId) {
|
||||
return summary.displayname
|
||||
}
|
||||
return nil
|
||||
return summary.displayname
|
||||
}
|
||||
var roomInfo: String? {
|
||||
guard let creationEvent = events.first(where: { $0.eventType == .roomCreate }) else {
|
||||
|
||||
Reference in New Issue
Block a user