generated from element-hq/.github
-
Notifications
You must be signed in to change notification settings - Fork 2
Support custom components for messages #26
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
da3edae
Custom component concept piece
Half-Shot 53a2411
Document and types'
Half-Shot e3ee61f
lint
Half-Shot 8672c4b
Remove context menu
Half-Shot f862a49
Tidyup
Half-Shot b6f1034
docs fix
Half-Shot a513491
Merge branch 'main' into hs/custom-component-api
Half-Shot 402ab1d
Update module API
Half-Shot a2ca5d8
Merge branch 'main' into hs/custom-component-api
Half-Shot 04e9061
fixup
Half-Shot a04d07b
Specify options for the original component.
Half-Shot 40f13ec
Remove unused props
Half-Shot d0fadec
Add an example
Half-Shot 57c35df
tighten example
Half-Shot cdf6a18
Add filter function / hints
Half-Shot 1dd9947
Update API docs
Half-Shot 5d4f513
Merge branch 'main' into hs/custom-component-api
Half-Shot 953d029
run CodeQL again
Half-Shot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the API distinct state vs not rather than being quite foot-gunny such that if the latter sees an
m.room.nametimeline event it'd render it?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we could tighten up this example. I don't think we need a separate function for state, it's generally good practice within matrix to be checking state keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the spirit of the ongoing MVVM work I'd also be keen on simplifying the interface passed, passing entire js-sdk objects around is quite brittle and given we're in the talks of swapping out the js-sdk for the rust-sdk would be guaranteed to break
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what we can do here for the short term, to be honest. I feel like trying to factor
MatrixEventinto some sort of common structure is going to have a slight performance overhead per event, and it just feels gross to maintain another structure that we'd have to keep in line with changes to the event structure.I don't know about the rest of product here but I'd be more in favor of just having a breaking change when the rust-sdk pieces land to support whatever comes next.