Hello I wanted to know something about the following piece of code that I am using in one of my plugins for openfire. The following just gets the last activity date for a JID.
Session sess = sessionManager.getSession(address);
Date lastActive = sess.getLastActiveDate();
I noticed that if I am polling using the MUC.POLLMESSAGE from smack, the lastactivedate does not get updated. Is there a way to make sure that the lastactivedate gets updated when i am polling for new messages ?