SimpleChat icon indicating copy to clipboard operation
SimpleChat copied to clipboard

Adding new message in chatview

Open bhushanishere opened this issue 9 years ago • 1 comments

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. :)

bhushanishere avatar Sep 21 '16 06:09 bhushanishere

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

loganwright avatar Oct 10 '16 19:10 loganwright