Replies: 2 comments 4 replies
-
Thanks for writing up this proposal!
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Thanks a lot for the proposal!
But I'm still in to have a more consistent experience across clients. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, when clients send a content type, they are encouraged to include a
contentFallback
value that provides an alt text-like description of the original content for other clients that do not support that content type.For example, let's take a look at the
contentFallback
for the standards-track Reaction content type:If an app is unable to handle the Reaction content type, it can display this descriptive text instead. For example:
In this way, providing a
contentFallback
value helps all apps built with XMTP maintain a basic level of usability.Proposal
To reduce the friction for developers and provide a consistent experience as users navigate across different apps, we propose that a content type provide its
contentFallback
text in its codec.As we consider using codecs (based on this PR - xmtp/xmtp-js#426) to standardize fallback text for core features in the XMTP ecosystem, we propose fallback text with the following goals:
Attachments
Reactions
Based on the standards-track reactions content type:
Alternatively, while not currently supported, being able to reference the message in fallback text would provide valuable context:
Quote replies
Based on the standards-track reply content type:
Alternatively, while not currently supported, being able to reference the message in fallback text would provide valuable context:
Transaction receipts
Read receipts
Undefined (indicating that this fallback should not be visible to the user)
Enable user to find apps that support specific features
By appending to the end of “fallback text” that is visible to the user:
The value of adding a link such as above would be much higher if there was no fallback text available from the sending client. If context was available, the applicability of such a link would differ based on the content type.
Applicable:
Maybe applicable:
Not applicable:
Beta Was this translation helpful? Give feedback.
All reactions