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 832
Control currently viewed event via RoomViewStore #1058
Merged
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d3cf78f
Control currently viewied event via RoomViewStore
f320f7d
Remove redundant action id
ea97d16
Merge branch 'develop' into luke/fix-event-id-state
aa20ad7
Remove redundant `currentRoomAlias`
8ddc38c
Doc _viewRoom highlighted
2e82bf4
Explain setting of highlighted in room/$eventId showScreen handling.
dca2be6
Add RoomView initial state and docs
e58e4db
Explain why search results are cleared when eventId changes
59e649f
Add comment about roomId potentially not being resolved following an …
1792fa4
Null-guard roomId before sending a dispatch to update scroll state
000a045
Rename RVS state (event -> initialEvent) and redocument
36f72cc
Don't alter members of payload (when defaulting an event to scroll to…
1ff2be1
Update docs for RVS
c02dbd1
Rename initial state variables
8cfdb4c
Clarify initial event
cd8093d
Explicit undefined initialEventPixelOffset
c72edab
Update doc for getInitialEventId
9892566
Highlighted means highlighted
5588e11
Clarify doc for highlighted
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1119,7 +1119,9 @@ module.exports = React.createClass({ | |
const payload = { | ||
action: 'view_room', | ||
event_id: eventId, | ||
// If an event ID is set (truthy), mark it as highlighted | ||
// If an event ID is given in the URL hash, notify RoomViewStore to mark | ||
// it as highlighted, which will propagate to RoomView and highlight the | ||
// associated EventTile. | ||
highlighted: Boolean(eventId), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comment to explain what's going on here would be helpful |
||
third_party_invite: thirdPartyInvite, | ||
oob_data: oobData, | ||
|
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.
perfect ⭐