element-web/src/components/views
Travis Ralston c0632d0195 Acquire a new session before enacting deactivation
Fixes https://github.com/vector-im/riot-web/issues/13645

Every time the checkbox value changes we acquire a new session now. This avoids us asking the server to change its direction partway through the request.

This causes a bit of UI jerk as the dialog goes from auth -> loading -> auth, however it's better than the alternative of reworking the entire UIA structure to support the `authData` dict changing. Originally this commit consisted of a `disabled` flag on the `InteractiveAuth` component which carried through to the stage's component, however it turns out that stack doesn't respect changes to the `authData` prop, which means the session ID we eventually send down is wrong (`erase: false` instead of the one with `erase: true`). Therefore, we do some logic to ensure we remount `InteractiveAuth` completely.

Further work in this area is described in https://github.com/vector-im/riot-web/issues/13646
2020-05-12 17:17:17 -06:00
..
auth Don't erase password confirm on registration error 2020-05-01 11:03:48 +01:00
avatars Revert previous fix 2020-04-27 17:35:52 +01:00
context_menus View Source should target the replacing event rather than the root one 2020-05-11 15:43:34 +01:00
create_room Convert CommonJS exports to ES6-compatible exports 2019-12-22 21:01:02 -07:00
dialogs Acquire a new session before enacting deactivation 2020-05-12 17:17:17 -06:00
directory Fix missed copy 2020-03-16 12:28:20 +00:00
elements Merge pull request #4560 from matrix-org/t3chguy/redact_file 2020-05-11 10:10:25 +01:00
emojipicker Fix ugly scrollbars in TabbedView (settings), emojipicker and widgets 2020-03-28 00:51:01 +00:00
globals [CONFLICT CHUNKS] Merge branch 'develop' into travis/sourcemaps-develop 2020-01-09 14:15:09 -07:00
groups Silence usages of componentWillReceiveProps 2020-04-01 14:35:39 -06:00
messages Bring back UnknownBody for UISIs 2020-05-08 19:15:59 +01:00
right_panel Merge pull request #4580 from matrix-org/dbkr/dont_npe_if_no_device 2020-05-12 14:36:54 +01:00
room_settings Make RoomPublishSetting import-skinnable 2020-04-16 17:13:33 +01:00
rooms Fix sign in / up links on previewed rooms 2020-05-12 15:24:12 +01:00
settings Merge pull request #4556 from matrix-org/travis/fix-reset 2020-05-11 14:30:12 -06:00
terms Use noreferrer in addition to noopener for edge case browsers 2020-02-23 22:14:29 +00:00
toasts Add device name to unverified session toast 2020-04-30 16:09:38 +01:00
verification Provide separate translatable for case where we have no device 2020-05-12 12:42:16 +01:00
voip Merge branch 'develop' into travis/react-warnings/3-componentCannotDidMount 2020-04-01 11:14:19 -06:00