Closed phucnd0604 closed 5 years ago
Thanks for this comment, didn't thought about this. Indeed it's not a good solution. I will fix this in upcoming version.
Sure, maybe you need to re-design the data structure, the conversation can only have 2 child: content (array of messages), last update. When the app get old messages, you can get message from content child, the last update can use for real time chat.
Need a fix +1
News?
This app work well but i found a problem that when you open chat screen and the app load old message, because you use the observer for adding child so it will make the tableview update for each message. So when the conversation have about 1000 message or more (its possible) it call the update function 1000 times, its bad, the app may freeze or crash. Hope you can improve it.