steve228uk / MessengerKit

:speech_balloon: A UI framework for building messenger interfaces on iOS
MIT License
1.48k stars 129 forks source link

NSInternalInconsitencyException #34

Closed george-gymamigo closed 4 years ago

george-gymamigo commented 5 years ago

When the user presses the send button upon trying to insert new message the following error is thrown:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of sections. The number of sections contained in the collection view after the update (1) must be equal to the number of sections contained in the collection view before the update (0), plus or minus the number of sections inserted or deleted (0 inserted, 0 deleted).'

george-gymamigo commented 5 years ago

Hi Sam

I sorted the issue thanks, however for some reason if the message is longer than one line, the message bubble doesn’t get bigger? How can I fix this?

On 23 May 2019, at 4:09 pm, Sam Jones notifications@github.com<mailto:notifications@github.com> wrote:

@george-gymamigohttps://github.com/george-gymamigo This looks like an issue with your NSFetchedResultsControllerDelegatehttps://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate implementation.

Could you provide any furthers on your implementation of the delegate methods, and/or how you're fetching the data.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/steve228uk/MessengerKit/issues/34?email_source=notifications&email_token=AKHZGEVAK6R4ZXEODCDBKLDPW2XQPA5CNFSM4HI6JRI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWCQ7XI#issuecomment-495259613, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKHZGETMZIC5AM4PZW77OADPW2XQPANCNFSM4HI6JRIQ.

sjoness commented 4 years ago

Closing as the initial issue has been resolved as user error. The new issues has been reported in #49