mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Hide room creation event in modal
This commit is contained in:
parent
3fb3f21090
commit
0c6a14f079
1 changed files with 5 additions and 0 deletions
|
@ -112,9 +112,14 @@ final class RoomCreationEventsModalViewModel: RoomCreationEventsModalViewModelTy
|
|||
events.append(contentsOf: bubbleData.events)
|
||||
var nextBubbleData = bubbleData.nextCollapsableCellData
|
||||
while nextBubbleData != nil {
|
||||
// swiftlint:disable force_unwrapping
|
||||
events.append(contentsOf: nextBubbleData!.events)
|
||||
// swiftlint:enable force_unwrapping
|
||||
nextBubbleData = nextBubbleData?.nextCollapsableCellData
|
||||
}
|
||||
|
||||
// remove room create event from the list, as EW and ElA do. This will also avoid duplication of "%@ joined" messages for direct rooms.
|
||||
events.removeAll(where: { $0.eventType == .roomCreate })
|
||||
}
|
||||
|
||||
// MARK: - Public
|
||||
|
|
Loading…
Reference in a new issue