matrix-org / matrix-org/matrix-viewer
Update message tiles to have the proper level of interaction/options
- Dominant language
- JavaScript
- Stars
- 84
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Update message tiles to have the proper level of interaction/options
In Hydrogen, `interactive: false` is currently used for a slim reply so it doesn’t render the reaction list and message actions
For the archives, we need a slightly different use case of showing reactions and message actions `...` menu, but not the add emoji or message actions like remove, etc. We probably just need the `Copy permalink` and `View source` type options.
## Todo
- [ ] Make an enum as the comment above is targeting, `[interactive, reference]`
- `interactive` allows actions that send events (like reactions, redactions)
- `reference` slims the item down to be used as a reply
## Relevant code
- [`src/platform/web/ui/session/room/timeline/BaseMessageView.js#L32`](https://github.com/vector-im/hydrogen-web/blob/d91aaabeb392b0b973525654ba98bc8b83063493/src/platform/web/ui/session/room/timeline/BaseMessageView.js#L32)
Contributor guide
Research direction
Start with the interaction handling referenced at src/platform/web/ui/session/room/timeline/BaseMessageView.js#L32 and inspect how message tiles are used in Hydrogen. Define the requested interaction/reference modes so archive tiles retain reactions, Copy permalink, and View source while omitting add-emoji and destructive actions. Done means the archive and slim-reply behaviors match those distinctions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100