-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: download room history #89
Comments
Hi @mcnesium Have a close look at the Maybe using the It most likely is not be the full solution for you, but it might get you a big step further. Have a look at these 2 options in particular. I don't know how you would import an old history into the new account on the new server. Anyone knows if this is possible? |
Thanks for pointing me to the One more question though: how do I get the actual room addresses and/or a clue whether this is a DM ? The A good start would be to figure out whether there is only one person in the room, but I am struggeling with using |
Today (for testing some downloading attachments), I did a |
You want to convert a room ID into a possible room alias. That does not exist in |
This should work: The quotes are very important! Just did it, works like a charm. |
@mcnesium Get the new version from today. |
Hello, just a heads up to mention |
Yes, of course, in total you get a command like:
|
Thanks for all the input. I started downloading using this bash snippet:
It ran well for about 8,5h but then stopped at 95 out of 230 rooms with the message
The whole procedure turns out to be sort of tedious as well in the end, because my account also idles in chats like So I think I am going to change my strategie to first get a handy list of rooms and select those that I want and then only download those. The problem here is that you said it is not possible (yet?) to get the name or alias from the internal ID of a room. So I thought of changing the script above from
and then get the room name with some substring extraction magic like e.g. First experiments showed though that |
a) thank you for reporting your feedback. It is appreciated because it helps others to learn as well. Thank you @mcnesium b) c)
This could have been a time-out. Only way to know is to run it with d)
Mmmh, strange. It takes hours? Run it on 1 room only and in |
Thinking about it, most likely you are NOT interested in the So, the above about the You want roomid-to-displayname mapping. That is different. |
Just did a release, especially for you :) For any message received with Try something like |
Someone, maybe not you, could read, in various stages, in various runs, messages from the server, with Later, one goes thru the database one by one, and for each entry (msg received) there is the info of In short, one could create a temporary storeage (e.g. db) for import and export. |
FYI, I frequently see execution times of 5 to 15sec for a trivial |
Thank you very much for that personalized release 😍 For reproducibility, here is exactly what I did:
So I seem to be running my very own personal version. So lets try to
It took almost 5 minutes for the return of that JSON string. Here is another one,
Again, no response for almost 5 minutes, then the JSON appears and the command finishes. The long response time aside, I can now pipe that I wonder whether edit: I tried the same on another 2,3G machine on a DFN connection. Turns out, running v3.5.3 natively from AUR and v3.5.5 in Docker both take a bit more than one minute for the return of a
|
Can you take your comment (90% of it), the performance related part, and post it on Issue #91 which is a more appropriate place. Thanks. |
Look at the nearly last line of the source code: So, yes it tries to return 0 for no error, or the # of errors. But remember |
Another feature for you in today's second commit. Try Give it a list of room ids and get a list of room objects all having a |
Just FYI: The new release also allows resolving room aliases to room ids. I mention it because we spoke about it in the past. There are 2 ways of doing it, one being: |
Hi, I'm finding that matrix-commander is stopping after about 200 images. We use the room for my photography group. Unfortunately none of us have saved all the photos. Here is what I tried:
I don't know how long to tail back (how many events there might be), I think the room has been around since last year. Ideally I'd like to go back as far as Matrix.org will allow. My understanding is the |
The "Migrate your existing Matrix account" tool does quite a good job in transfering your account to a new home server including setting roles and parting the old account, which is quite cool. It does not transfer the history though, which is totally plausible from a technical point of view.
Though when migrating to a new home server, leaving years of chat history behind might be a show stopper from finally moving away from matrix.org (which is the case for myself by now). The built-in history download thing from inside Element Web is fine for one or two iterations, but it gets sort of tedious when you have a three-digit number of rooms and dms in your account.
So I was looking for a scriptable solution and found
matrix-commander
having candidate potential. Unfortunately, it does not seem to be able to download a room's history yet, does it? So this is a request for a "download room history" feature.The text was updated successfully, but these errors were encountered: