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

Render unknown events and message types so users don't miss messages #1197

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ichthyosaurus
Copy link

@ichthyosaurus ichthyosaurus commented Dec 2, 2024

This PR adds a new tile shape "unknown-event" that is shown when an unknown event or message type is received. If it is a message, then the shape will render as a message (with username and avatar), otherwise it is rendered as an announcement.

Some events are handled outside of the tile handling logic, so they are explicitly not added to the timeline. Some other events don't have their own tile implementations at the moment, but they are less important and can safely be hidden without users missing much info. This reduces spam in the timeline.

Ideally, all events should get their own tiles, or it should be a conscious decision not to render a specific event.

Unsupported events:

unknown-event

Unsupported messages:

unknown-message

(I actually implemented m.sticker and m.audio in #1195.)

Fixes #1196.
Related to #1187.
Related to #1195.

This helps users not to miss anything unnoticed. Clearly state
that a message is not supported by hydrogen so users can check
their messages with a different client.

Signed-off-by: Mirian Margiani <[email protected]>
Unknown messages are rendered using the fallback plain text
representation, including a notice that the message is not
supported.

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
Development

Successfully merging this pull request may close these issues.

Unknown events are not rendered, making it possible to miss important messages
1 participant