Skip to content

Commit

Permalink
Dispatch adjustScrollViewToBottom so collection view can recalculate …
Browse files Browse the repository at this point in the history
…layouts
  • Loading branch information
jrcmramos-bumble committed Jul 20, 2022
1 parent 82b430e commit b797e3e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ extension ChatMessageCollectionAdapter: ChatDataSourceDelegateProtocol {
if sSelf.unfinishedBatchUpdatesCount == 0, let onAllBatchUpdatesFinished = self?.onAllBatchUpdatesFinished {
DispatchQueue.main.async(execute: onAllBatchUpdatesFinished)
}

adjustScrollViewToBottom()
})
}
)
Expand All @@ -485,9 +485,9 @@ extension ChatMessageCollectionAdapter: ChatDataSourceDelegateProtocol {

collectionView.setNeedsLayout()
collectionView.layoutIfNeeded()
}

adjustScrollViewToBottom()
adjustScrollViewToBottom()
}

if !usesBatchUpdates || self.configuration.fastUpdates {
myCompletion()
Expand Down

0 comments on commit b797e3e

Please sign in to comment.