mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 09:02:44 +02:00
SP2: Adding Rooms to Spaces #523o
- update after review
This commit is contained in:
@@ -44,8 +44,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