         }
 
         if itemsForMainThread.count > 0 {
-            DispatchQueue.main.sync(execute: { () -> Void in
+            DispatchQueue.main.sync {
                 for (index, itemCompanion) in itemsForMainThread {
-                    let height = itemCompanion.presenter.heightForCell(maximumWidth: collectionViewWidth, decorationAttributes: itemCompanion.decorationAttributes)
+                    let height = itemCompanion.presenter.heightForCell(
+                        maximumWidth: collectionViewWidth,
+                        decorationAttributes: itemCompanion.decorationAttributes
+                    )
                     intermediateLayoutData[index].height = height
                 }
-            })
+            }
         }
         return createLayoutModel(intermediateLayoutData: intermediateLayoutData)
     }

                updateType: updateType
            ) {
                guard let sSelf = self else { return }
                if sSelf.updateQueue.isEmpty {
                    sSelf.enqueueMessageCountReductionIfNeeded()
                }

        }

        if performInBackground {
            self.chattoUpdatesQueue.async {
                guard let modelUpdate = createModelUpdate() else { return }

                DispatchQueue.main.async {
