A client wants to connect, synchronize and have a chat history without holes starting from a client-defined event.
This is the anticipated flow:
- connect, authenticate, bind
- client: fetch everything(*) from MAM
- this can be based on a start date (e.g. last 2 days) or the last known archive ID.
- (*) After completing this, the client will know the latest MAM-ID from that fetch (
last_id
), but maybe some messages arrived in between