We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The sample app crashes when you sent empty message list.
I debugged into the code and found the issue in MessagesCollectionView.swift.
var indexPathForLastItem: IndexPath? { let lastSection = numberOfSections > 0 ? numberOfSections - 1 : 0 guard numberOfItems(inSection: lastSection) > 0 else { return nil } return IndexPath(item: numberOfItems(inSection: lastSection) - 1, section: lastSection) }
if numberOfSections is 0, the lastSection should not exist and return nil, but here retrieving section 0.
The text was updated successfully, but these errors were encountered:
@superdev89 Thank you for reporting this! 🎉 You can submit a PR to the v0.5.0 branch if you'd like to fix this yourself.
v0.5.0
Sorry, something went wrong.
@superdev89 Let us know if you would like to fix it or we will open it up to anyone. Great job finding it. 💪😎👊 I am going to assign it to you for now.
I fixed this issue locally, should I open a PR?
That would be great @AndrewLauder.
Merge pull request #73 from AndrewLauder/v0.5.0
0b9d472
Fix for Crash issue when no message #61
superdev89
No branches or pull requests
The sample app crashes when you sent empty message list.
I debugged into the code and found the issue in MessagesCollectionView.swift.
if numberOfSections is 0, the lastSection should not exist and return nil, but here retrieving section 0.
The text was updated successfully, but these errors were encountered: