0
votes

Is it possible to add server timestamp in the messages sent by the ejabberd server ? This will help in synchronizing the Server and Client clock times. I am facing difficulties in trying to retrieve the message history in an MUC chat.

Scenario:

Lets say that the Server time is T100 and that the client's clock is 10 seconds behind the server time(Lets call this time T90).

At T100, the server sends an message M1 to the client. The client receives this message at time T90(Clients local time).

Next the client goes offline and tries to rejoin the group. The client requests for all messages after time T90 (since the last received message M1 was received by client at T90).

The server sends M1 back to the client again because M1 has an timestamp of T100.

Thanks,

1

1 Answers

0
votes

MAM messages have ids. You can use those ids to paginate in archive, retrieve messages and undupe.