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 196a72a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ extension ChatMessageCollectionAdapter: ChatDataSourceDelegateProtocol {
collectionView.layoutIfNeeded()
}

adjustScrollViewToBottom()
DispatchQueue.main.async {
adjustScrollViewToBottom()
}

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

0 comments on commit 196a72a

Please sign in to comment.