matrix-nio
matrix-nio copied to clipboard
Retrieve all messages in a room in matrix from the first message.
So we have a matrix server where we have integrated whatsapp into it through mautrix-whatsapp bridge. I have used matrix-neo to get the chats and store them in a file. The chats are live syncing but are not retrieving all the messages present in a room. How can I retrieve all the messages present in a room?
Hi,
you may be interested into this closed pull requests that never became merged. I've not tested it here but I think that it shows how to ask for room history and retrieve it in an chunked way.
https://github.com/matrix-nio/matrix-nio/pull/209
Ciao :-)