element-portable/src/components/structures
Luke Barnard d3cf78ff5a Control currently viewied event via RoomViewStore
Fix for https://github.com/vector-im/riot-web/issues/4224

Due to the way `MatrixChat` does a state update when the `view_room` dispatch fires and a second update when `RoomViewStore` sends an update, the current event ID and room ID were becoming out of sync. The solution devised was to have the event ID managed by the `RoomViewStore` itself and do any defaulting there (for when we revisit a room that we saved scroll state for previously).

This required a few changes:
 - The addition of `update_scroll_state` in `RoomViewStore` allows the `RoomView` to save scroll state for a room before swapping to another one. Previously the caching of scroll state was done in `RoomView`.
 - The `view_room` dispatch now accepts an `event_id`, which dictates which event is supposed to be scrolled to in the `MessagePanel` when a new room is viewed. It also accepts `event_offset`, but currently, this isn't passed in by a dispatch in the app, but it is clobbered when loading the default position when an `event_id` isn't specified. Finally, `highlighted` was added to distinguish whether the initial event being scrolled to is also highlighted. This flag is also used by `viewRoom` in `MatrixChat` in order to decide whether to `notifyNewScreen` with the specified `event_id`.
2017-06-08 14:17:49 +01:00
..
login Merge branch 'develop' into new-guest-access 2017-06-07 12:08:37 +01:00
ContextualMenu.js Fix a bunch of linting errors 2017-01-20 14:22:27 +00:00
CreateRoom.js fix missing translations and typos in i18n 2017-06-07 18:24:35 +01:00
FilePanel.js Translate src/components/structures 2017-06-07 11:40:46 +01:00
InteractiveAuth.js remove unused imports 2017-06-02 21:35:55 +01:00
LoggedInView.js Control currently viewied event via RoomViewStore 2017-06-08 14:17:49 +01:00
MatrixChat.js Control currently viewied event via RoomViewStore 2017-06-08 14:17:49 +01:00
MessagePanel.js don't lose date seperator when the first event of the new day is redacted 2017-06-02 04:39:44 +01:00
NotificationPanel.js Bulk change counterpart imports 2017-05-25 11:39:08 +01:00
RoomStatusBar.js Translate src/components/structures 2017-06-07 11:40:46 +01:00
RoomView.js Control currently viewied event via RoomViewStore 2017-06-08 14:17:49 +01:00
ScrollPanel.js Separate predicates for RM/RR 2017-05-09 17:36:19 +01:00
TimelinePanel.js Translate src/components/structures 2017-06-07 11:40:46 +01:00
UploadBar.js Translate src/components/structures 2017-06-07 11:40:46 +01:00
UserSettings.js Merge branch 'develop' into new-guest-access 2017-06-07 12:08:37 +01:00