Git Product home page Git Product logo

Comments (10)

t3chguy avatar t3chguy commented on July 18, 2024 2

Previewing a Public Room in general, would be nice in matrix.to
Previewing a specific message, maybe in the future @uhoreg

from matrix.to.

MurzNN avatar MurzNN commented on July 18, 2024 1

At now we have already https://view.matrix.org/ that can do a static preview of most rooms, for example https://view.matrix.org/room/!cURbafjkfsMDVwdRDQ:matrix.org/ so now we can at first easily integrate iframe to matrix.to web pages.

Seems Matrix Static at now can't display specific message separately on page, but I think this is not hard to implement, so I post feature request: matrix-org/matrix-static#49

from matrix.to.

uhoreg avatar uhoreg commented on July 18, 2024

Maybe some way to hook into riot-static? @t3chguy, what do you think?

from matrix.to.

uhoreg avatar uhoreg commented on July 18, 2024

Ah, I completely missed that this was about individual messages.

from matrix.to.

t3chguy avatar t3chguy commented on July 18, 2024

I guess it could be a hybrid, preview the public room and if the event is in memory highlight it
whatcha think @uhoreg ?

from matrix.to.

uhoreg avatar uhoreg commented on July 18, 2024

That might work, if you made it clear, when the event wasn't in memory, that it was just a preview of the whole room. Otherwise it may be confusing for users.

from matrix.to.

t3chguy avatar t3chguy commented on July 18, 2024

@uhoreg upon re-reading this seems to be about a URL Preview of matrix.to&the room it points to in Riot, this is not possible unless Synapse grows a thing that executes Javascript as matrix.to is entirely clientside

from matrix.to.

JorikSchellekens avatar JorikSchellekens commented on July 18, 2024

Rooms are now preview-able on matrix.to
Events are pending: matrix-org/matrix-spec-proposals#2644

from matrix.to.

t3chguy avatar t3chguy commented on July 18, 2024

Strictly speaking

URL preview for messages in public rooms that allow guests

Will not be possible, given that a room allowing guests would mean that m.to has to create a guest account and join the room

URL preview for messages in PEEKABLE rooms

would be achievable

from matrix.to.

clokep avatar clokep commented on July 18, 2024

URL preview for messages in PEEKABLE rooms

would be achievable

I was hoping this would be an easy-ish thing to knock out one day while off-hours since this really annoys me each time I post a matrix.to link. It seems that matrix.to currently loads information about the room in the background though, so it wouldn't be easy to embed any Open Graph info into the page itself.

One option could be to embed an oEmbed autodiscovery link to a JSON endpoint which returns some information though. This would at least work for Synapse to generate better previews.

from matrix.to.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.