Skip to content
New issue

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

Adding new message in chatview #43

Open
bhushanishere opened this issue Sep 21, 2016 · 1 comment
Open

Adding new message in chatview #43

bhushanishere opened this issue Sep 21, 2016 · 1 comment

Comments

@bhushanishere
Copy link

Hi,
I am adding new message from opponent using following code,

   let chatController = LGChatController()
    let helloWorld = LGChatMessage(content: "Hello World!", sentBy: .Opponent)
    chatController.addNewMessage(helloWorld)

then it is crashing and i got result as following,

Terminating app due to uncaught exception 'NSRangeException', reason: '-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:]: row (0) beyond bounds (0) for section (0).'
because "LGChatMessage" is empty.

So how can i add new message from opponent? It's working fine when i am adding message from user.
Please help me.
Thanks in advance. :)

@loganwright
Copy link
Owner

@bhushanishere I'm not able to reproduce this locally, are you still having issues. Sorry about the very late reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants