I'm designing an application that using PubNub for real-time message. I'm facing with an issue about 1-to-1 chatting. This is my scenario :
I have an user A, so if A wants to receive all messages from another, A must subscribe a public channel, called PUB channel.
User B know the public channel of A, so B or another can send messsage to this channel. Right now that fine.
BUT when i open the app, i want to display the list of users that i've messaged or offline messages that a NEW person sent me.
I can get all messages from my public channel. but how to filter with the user? in case of a lot of messages, this is so difficult.
With all of them , i only want get messages of me and C, or me and B...etc Anyone have ideas for this? Thanks,