Skip to content Skip to sidebar Skip to footer

Data Inside Recyclerview Is Getting Populated Twice Using Socket.io

I am working on chat application which uses Socket.IO for sending and receiving messages.Problem which i am facing is when a user send a message to other user,its message gets popu

Solution 1:

This code is actually fine the problem was with the hardcoded values of sender and receiver and their if and else condition .....with dynamic userid's we will not require if and else condition for the user ...it will be simple from ...sender's user id ....to receiver user id which is admin.


Post a Comment for "Data Inside Recyclerview Is Getting Populated Twice Using Socket.io"