Skip to content

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 <mixosaurus+ichthyo@pm.me>
Signed-off-by: Mirian Margiani <mixosaurus+ichthyo@pm.me>
Signed-off-by: Mirian Margiani <mixosaurus+ichthyo@pm.me>
Signed-off-by: Mirian Margiani <mixosaurus+ichthyo@pm.me>
Unknown messages are rendered using the fallback plain text
representation, including a notice that the message is not
supported.

Signed-off-by: Mirian Margiani <mixosaurus+ichthyo@pm.me>
Signed-off-by: Mirian Margiani <mixosaurus+ichthyo@pm.me>
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