         
         func setComputing(_ isComputing: Bool, forDirectRoom room: MXRoom) {
             self.serialQueue.sync {
-                if _isComputing {
+                if isComputing {
                     computingDirectRooms.insert(room.roomId)
                 } else {
                     computingDirectRooms.remove(room.roomId)

        
        func setComputing(_ isComputing: Bool, forSpace space: MXSpace) {
            self.serialQueue.sync {
                if _isComputing {
                    computingSpaces.insert(space.spaceId)
                } else {
                    computingSpaces.remove(space.spaceId)

        }
        var isPreparingData = true
        var isComputing: Bool {
            var isComputing = false
            self.serialQueue.sync {
                isComputing = !self.computingSpaces.isEmpty || !self.computingDirectRooms.isEmpty
            }
            return isComputing
        }
        
        private let serialQueue = DispatchQueue(label: "org.matrix.sdk.MXSpaceService.PrepareDataResult.serialQueue")
