powered by Jive Software

Group chat message timestamp

hello guys, I just noticed that packets do not have a notion of Timestamps. I am currenlty having issues sending messages that were sent to room after the user logged in.The user keeps receiving messages that were sent to that room before and will keep getting the messages again if the user rejoins the same room. I am trying to use timestamps so that only messages with ts > user login ts will reach the user.

Any ideas ?

Ah nevermind , i think i will just use message.setProperty and stick my own property with system.currentmillis . That should do the trick.