matrix-org / matrix-static

A static golang generated preview of public world readable Matrix rooms.
http://view.matrix.org/
Apache License 2.0
86 stars 25 forks source link

Older direct links stop working #65

Open xaur opened 6 years ago

xaur commented 6 years ago

I opened this message direct link from Jul 5

https://view.matrix.org/room/!wSdymYrEpBhsWlDJuk:decred.org/?anchor=$153090455433548QNlFj:decred.org

and it showed "Some error has occurred". Then I removed the anchor part from the URL to open latest messages in the room and pressed "Load older messages" until I reached Jul 5 and it showed the message I was after. Then I visited initial direct link again and it opened.

Example of direct link that doesn't work (until someone visits it via "Load older messages"):

https://view.matrix.org/room/!OfChXgczrIlpEZSFAv:decred.org/?anchor=$153125687135698lmQRO:decred.org

t3chguy commented 6 years ago

Yes because of the limitations of the peeking APIs it cannot access old events without having to paginate to them which would be very expensive

xaur commented 6 years ago

Does it mean a won't fix?

t3chguy commented 6 years ago

It'd mean having to persist things locally (duplicating data) but it's not completely out of the question

xaur commented 6 years ago

Thanks. I guess I shall be using matrix.to "dispatch" links then -- tried opening some "old" links in Riot and they open pretty fast.

xaur commented 6 years ago

By the way, why old message links work in riot?

Jus tried this link from Jul 2 and it opened pretty fast. Does riot persist things locally (duplicating data) as you mentioned?

P.S. Apologies for novice questions, I'm trying to migrate my reports from linking to Slack messages to linking to Matrix messages and looking for most reader-friendly solutions. Expiring links and #60 are two obstacles I encountered

t3chguy commented 6 years ago

Riot uses the context api which is relatively expensive and would have to be done for each event, matrix-static pulls pages of events in order and already runs into issues with hitting the server too much

bkil commented 1 year ago

Related: #115