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.
Part of the fix for #348
alwaysShowHeader
has been added to force the title to be shown even if there are 0 elements. Required so people can actually click the archived header.showSpinner
has been added to make a spinner spin if there are 0 elements. Required so people know a request is ongoing whilst getting archived rooms.onHeaderClick
has been added so we can call the JS SDK when the archived room header is clicked.startAsHidden
has been added to allow the initial collapsed/expanded state to be modified. Required because the archived section should be collapsed by default as we don't yet have the rooms until you try to expand it.Also added a
TODO
questioning the naming ofprops.collapsed
- it's terribly confusing because I think of collapsed as "no rooms are showing but you can expand them" but that is actually represented in the code asstate.hidden = true
.See also: