This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 827
RTE drafts #12674
Merged
Merged
RTE drafts #12674
Changes from 11 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4e0ad16
Add drafts to the RTE and tests
langleyd 4b367dc
Merge branch 'develop' into langleyd/rte_drafts
langleyd 2c92308
test drafts in threads
langleyd c9e8fc5
Merge branch 'langleyd/rte_drafts' of https://github.com/matrix-org/m…
langleyd ba9523d
lint
langleyd 7b5eb7a
Merge branch 'develop' into langleyd/rte_drafts
langleyd 57b51a0
Add unit test.
langleyd c084c86
Merge branch 'langleyd/rte_drafts' of https://github.com/matrix-org/m…
langleyd cd973b2
Fix test failure
florianduros e385502
Merge branch 'develop' into langleyd/rte_drafts
langleyd 2741659
Remove unused import
langleyd 880de62
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
langleyd 482268e
Clean up wysiwyg drafts and add test.
langleyd d5bbaa1
Merge branch 'develop' into langleyd/rte_drafts
langleyd 06da902
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
langleyd 6dab422
Merge branch 'langleyd/rte_drafts' of https://github.com/matrix-org/m…
langleyd 53e0523
Fix typo
florianduros 7489ecf
Merge branch 'langleyd/rte_drafts' of https://github.com/matrix-org/m…
langleyd c96b9e2
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
langleyd 97aa83a
Merge branch 'develop' into langleyd/rte_drafts
langleyd 48c6a99
Add timeout to allow for wasm loading.
langleyd 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 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
This file contains 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
This file contains 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.
Given there's no code to clean up drafts from rooms which you are no longer in can we move it to IDB where we have less space pressure?
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.
@t3chguy IDB appears to be a bit slower for small values than localstorage and because it's async setting the initial content outside of the constructor makes the initialisation of the editor feel a bit slow/janky. And introduced a weird issue where the initial text is sometimes selected.
Maybe we could stick with localstorage for consistency between it and CIDER but then look to add the cleanup for both? Is it just clearing the data when we leave or are kicked from a room?
Any other ideas?
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.
It'd have to be a periodic scan comparing the drafts stored vs known rooms at a known good client state, as the client may not receive kicks/leaves depending on if the room was forgotten via another client before it syncs
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.
Added