Skip to content
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

Extend msgtype m.text properties to control the URL preview #1389

Closed
wmwsagara opened this issue Jan 2, 2023 · 1 comment
Closed

Extend msgtype m.text properties to control the URL preview #1389

wmwsagara opened this issue Jan 2, 2023 · 1 comment

Comments

@wmwsagara
Copy link

wmwsagara commented Jan 2, 2023

Description:

Please note, this is Matrix specification extend proposal.
Referring to: https://spec.matrix.org/v1.5/client-server-api/#mtext

URL preview is desired but not always require for all messages in a room where automatic URL preview is enabled.

Example, certain types of bot messages do not require URL previews.

Automatic URL preview on messages where URL preview is not applicable, makes those messages too blot, ugly and difficult to read fast.

I propose a message-level url preview control property, hypothetically named displayUrlPreview, where message sender control the URL preview.

If the URL preview is enabled for a room, and:

  1. If displayUrlPreview is true for the message, then client should render the URL preview.
  2. If displayUrlPreview is false for the message, then client should not render the URL preview.

If the URL preview is NOT enabled for a room:
3. Regardless of displayUrlPreview is true or false for the message, client should not render the URL preview.

@richvdh richvdh transferred this issue from matrix-org/synapse Jan 3, 2023
@turt2live
Copy link
Member

Duplicate of #221

@turt2live turt2live marked this as a duplicate of #221 Jan 3, 2023
@turt2live turt2live closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants