Allow exporting a range of message numbers #30441
Draft
+86
−39
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.
This is intended to help with #20445, once a chat history has gotten large enough to prevent it from being exported in one piece.
This works for my personal needs from a very quick bit of testing. Some work, particularly on tests, is needed. I may be able to do that, but I would first like to hear from the team on whether this direction is even considered desirable. I'm also open to feedback on how the range to be captured is described. The present "number/number to beginning" was driven mainly by least-edit-distance at first, but personally I'm finding it reasonably intuitive/usable.
I should add: I know next to nothing about React. This change is almost entirely monkey-see-monkey-do. I'm actually kind of surprised how far I was able to get with that approach. 🙂 So help/advice from someone more experience would definitely be more than welcome.
Checklist
public
/exported
symbols have accurate TSDoc documentation.