I have a RecyclerView
in which I load the messages of a chat, and what I need is that when the user connects to Internet , the RecyclerView
erases the messages that you have already saved and add the new ones that are obtained from Firebase .
I do not know how I can do this, I do not know if I should create a custom adapter in Null
or something else.
I hope you can help me!