mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 02:52:45 +02:00
Merge branch 'gil/SP1_space_creation' into gil/5231_SP3-1_Update_room_settings_for_Spaces
# Conflicts: # Riot/Modules/Spaces/SpaceRoomList/ExploreRoomCoordinator.swift # RiotSwiftUI/Modules/Spaces/MatrixItemChooser/View/MatrixItemChooser.swift
This commit is contained in:
+3
@@ -46,8 +46,11 @@ class AddRoomItemsProcessor: MatrixItemChooserProcessorProtocol {
|
||||
|
||||
// MARK: Private
|
||||
|
||||
/// Add room with roomId from list of room IDs at index to the parentSpace.
|
||||
/// Recurse to the next index once done.
|
||||
func addChild(from roomIds: [String], at index: Int, completion: @escaping (Result<Void, Error>) -> Void) {
|
||||
guard index < roomIds.count else {
|
||||
// last item has been processed or list is empty --> the recursion has finished
|
||||
completion(Result.success(()))
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user