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

Remove reply fallbacks #1994

Merged
merged 7 commits into from
Nov 29, 2024
Merged

Remove reply fallbacks #1994

merged 7 commits into from
Nov 29, 2024

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented Nov 14, 2024

As per MSC2781.

Fixes: #350
Fixes: #368
Fixes: #372

Pull Request Checklist

Preview: https://pr1994--matrix-spec-previews.netlify.app

As per MSC2781.

Signed-off-by: Kévin Commaille <[email protected]>
@zecakeh zecakeh requested a review from a team as a code owner November 14, 2024 10:05
Signed-off-by: Kévin Commaille <[email protected]>
content/client-server-api/modules/instant_messaging.md Outdated Show resolved Hide resolved
Comment on lines 26 to 27
replies, this is no longer the case. Clients might still want to remove this
fallback before rendering the event.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they must remove it, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is not must in the MSC. There is:

Clients […] should consider treating <mx-reply> parts as they treat other invalid html tags.

And

[…] clients may need to strip out such fallbacks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that it should not be mandatory as it will allow clients to drop any special code regarding this feature when it is not sent anymore in new messages. It will only appear in historical events but it could be considered acceptable to display the fallback in that case.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fallbacks are still being sent by current clients, so receiving clients will have to remove the fallback for a while yet.

I think SHOULD captures the intent here.

Signed-off-by: Kévin Commaille <[email protected]>
content/client-server-api/modules/instant_messaging.md Outdated Show resolved Hide resolved
content/client-server-api/modules/rich_replies.md Outdated Show resolved Hide resolved
content/client-server-api/modules/instant_messaging.md Outdated Show resolved Hide resolved
Comment on lines 26 to 27
replies, this is no longer the case. Clients might still want to remove this
fallback before rendering the event.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fallbacks are still being sent by current clients, so receiving clients will have to remove the fallback for a while yet.

I think SHOULD captures the intent here.

content/client-server-api/modules/rich_replies.md Outdated Show resolved Hide resolved
content/client-server-api/modules/event_replacements.md Outdated Show resolved Hide resolved
content/client-server-api/modules/rich_replies.md Outdated Show resolved Hide resolved
content/client-server-api/modules/rich_replies.md Outdated Show resolved Hide resolved
@zecakeh zecakeh requested a review from richvdh November 28, 2024 10:31
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@richvdh richvdh merged commit 8ab2988 into matrix-org:main Nov 29, 2024
12 checks passed
@zecakeh zecakeh deleted the msc2781 branch November 29, 2024 09:54
ichthyosaurus added a commit to ichthyosaurus/hydrogen-web that referenced this pull request Dec 5, 2024
Due to invalid formatting, replies to replies became garbled,
causing display issues in some clients. Hydrogen itself managed
to display the replies correctly but other clients and bridges
struggled because they were actually using the fallbacks.

Current spec: https://spec.matrix.org/v1.12/client-server-api/#fallbacks-for-rich-replies

Reply fallbacks are actively being removed in the upcoming spec but
that doesn't mean that Hydrogen should keep the old bugged code in place.

Upcoming MSCs:
- matrix-org/matrix-spec-proposals#2781
- matrix-org/matrix-spec-proposals#3676
- spec: matrix-org/matrix-spec#1994

Signed-off-by: Mirian Margiani <[email protected]>
b100dian pushed a commit to hydrogen-sailfishos/hydrogen-web that referenced this pull request Dec 8, 2024
Due to invalid formatting, replies to replies became garbled,
causing display issues in some clients. Hydrogen itself managed
to display the replies correctly but other clients and bridges
struggled because they were actually using the fallbacks.

Current spec: https://spec.matrix.org/v1.12/client-server-api/#fallbacks-for-rich-replies

Reply fallbacks are actively being removed in the upcoming spec but
that doesn't mean that Hydrogen should keep the old bugged code in place.

Upcoming MSCs:
- matrix-org/matrix-spec-proposals#2781
- matrix-org/matrix-spec-proposals#3676
- spec: matrix-org/matrix-spec#1994

Signed-off-by: Mirian Margiani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants