channa bandara wrote:
As I have understood regarding offline messaging in Tigase server, when a user is offline, the message is saved in msg_history table and when the user is online message will be pushed to the the user. But when I check the msg_history table, although the messages are delivered to the user, offline message are still in the msg_history table and it's expired flag is NULL. The following is a sample record from the msg_history table.
Upon user establishing new connection (in this case firstname.lastname@example.org) all messages will be retrieved from the database, removed and send to the user. It's not possible that those are preserved AND sent at the same time as the code removes them before pushing to the user.
Please make sure there are no exceptions in the logs regarding database access.