mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Go back to using a reserved section method
This commit is contained in:
@@ -222,10 +222,10 @@ final class AdvancedExampleViewController: ChatViewController {
|
||||
fatalError("Ouch. nil data source for messages")
|
||||
}
|
||||
|
||||
// guard !isSectionReservedForTypingBubble(indexPath.section) else {
|
||||
// return super.collectionView(collectionView, cellForItemAt: indexPath)
|
||||
// }
|
||||
|
||||
guard !isSectionReservedForTypingIndicator(indexPath.section) else {
|
||||
return super.collectionView(collectionView, cellForItemAt: indexPath)
|
||||
}
|
||||
|
||||
let message = messagesDataSource.messageForItem(at: indexPath, in: messagesCollectionView)
|
||||
if case .custom = message.kind {
|
||||
let cell = messagesCollectionView.dequeueReusableCell(CustomCell.self, for: indexPath)
|
||||
|
||||
Reference in New Issue
Block a user