matrix-nio icon indicating copy to clipboard operation
matrix-nio copied to clipboard

Retrieve all messages in a room in matrix from the first message.

Open adi-lb-phoenix opened this issue 1 year ago • 1 comments

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?

adi-lb-phoenix avatar Nov 12 '24 11:11 adi-lb-phoenix

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 :-)

stronk7 avatar Mar 31 '25 10:03 stronk7