element-web/src/components/views/dialogs
Luke Barnard 298c5e4df3 Implement a store for RoomView
This allows for a truely flux-y way of storing the currently viewed room, making some callbacks (like onRoomIdResolved) redundant and making sure that the currently viewed room (ID) is only stored in one place as opposed to the previous many places.

This was required for the `join_room` action which can be dispatched to join the currently viewed room.

Another change was to introduce `LifeCycleStore` which is a start at encorporating state related to the lifecycle of the app into a flux store. Currently it only contains an action which will be dispatched when the sync state has become PREPARED. This was necessary to do a deferred dispatch of `join_room` following the registration of a PWLU (PassWord-Less User).

The following actions are introduced:
 - RoomViewStore:
    - `view_room`: dispatch to change the currently viewed room ID
    - `join_room`: dispatch to join the currently viewed room
 - LifecycleStore:
    - `do_after_sync_prepared`: dispatch to store an action which will be dispatched when `sync_state` is dispatched with `state = 'PREPARED'`
 - MatrixChat:
    - `sync_state`: dispatched when the sync state changes. Ideally there'd be a SyncStateStore that emitted an `update` upon receiving this, but for now the `LifecycleStore` will listen for `sync_state` directly.
2017-05-24 16:56:13 +01:00
..
BaseDialog.js Revert "Merge pull request #822 from t3chguy/BaseDialog_restore_focus" 2017-05-16 14:50:29 +01:00
ChatCreateOrReuseDialog.js fix CSS for ChatCreateOrReuseDialog.js 2017-03-13 00:03:33 +00:00
ChatInviteDialog.js Replace NeedToRegisterDialog /w SetMxIdDialog 2017-05-15 17:31:26 +01:00
ConfirmRedactDialog.js clarify that redact === delete 2017-03-19 02:34:25 +00:00
ConfirmUserActionDialog.js fix kick dialog CSS 2017-03-13 00:47:33 +00:00
DeactivateAccountDialog.js Fix import for Lifecycle 2017-03-13 14:10:14 +00:00
DeviceVerifyDialog.js Group e2e keys into blocks of 4 characters 2017-05-22 12:01:09 +01:00
ErrorDialog.js make autofocus explicit on errordialog as it autoFocus attr seems unreliable 2017-04-22 17:28:48 +01:00
InteractiveAuthDialog.js Remove old import & pass through result 2017-03-03 14:31:52 +00:00
QuestionDialog.js Revert "Merge pull request #807 from matrix-org/matthew/quick-search" 2017-05-16 16:11:01 +01:00
SessionRestoreErrorDialog.js Don't force-logout the user if reading localstorage fails 2017-02-15 19:33:39 +00:00
SetMxIdDialog.js Implement a store for RoomView 2017-05-24 16:56:13 +01:00
TextInputDialog.js Create a common BaseDialog 2017-01-24 18:18:54 +00:00
UnknownDeviceDialog.js show the room name in the UDE Dialog 2017-04-25 09:26:21 +01:00