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

[Feature] Format mentions in outgoing messages #393

Open
foxyseta opened this issue Feb 15, 2025 · 0 comments
Open

[Feature] Format mentions in outgoing messages #393

foxyseta opened this issue Feb 15, 2025 · 0 comments

Comments

@foxyseta
Copy link

From iamb-users:

Well, Element Web crafted this:

┌────────────────────────────────────────────────────────────────────┐
│ "content": {                                                       │
│    "body": "so if I try Full Name , what does the event            │
│look like?",                                                        │
│    "format": "org.matrix.custom.html",                             │
│    "formatted_body": "so if I try <a href=\"https://matrix.to/#/@  │
│user:server.net\">Full Name</a> , what does the                     │
│event look like?",                                                  │
│    "m.mentions": {                                                 │
│      "user_ids": [                                                 │
│        "@user:server.net"                                          │
│      ]                                                             │
│    },                                                              │
│    "msgtype": "m.text"                                             │
│  }                                                                 │
└────────────────────────────────────────────────────────────────────┘

While iamb crafted this:

┌────────────────────────────────────────────────────────────────────┐
│"content": {                                                        │
│    "body": "e.g. @user:server.net (you should see this message as  │
│not displayed correctly on clients other than iamb)",               │
│    "format": "org.matrix.custom.html",                             │
│    "formatted_body": "<p>e.g. @user:server.net (you should see this│
│ message as not displayed correctly on clients other than iamb)</p>\│
│n",                                                                 │
│    "msgtype": "m.text"                                             │
│  }                                                                 │
└────────────────────────────────────────────────────────────────────┘ 

two major differences here: the formatted body had an
actual link in it and EW added m.mentions which iamb
does not do.
feature request, I guess
interesting that EX did the extra work of spotting the
mention and wrapping it in a pill

Given the lack of consistent support among clients, sticking to the centralized, domain-dependent https://matrix.to was recommended over the decentralized, domin-independent URI schema matrix:.

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

1 participant