element-web/src/components/views
Jason Robinson 02ff1763a2 Ensure scalar_token is valid before opening integrations manager
Since Scalar (and other integration managers) are loaded as apps into
an iframe, a valid `scalar_token` must exist when loading the app.

It is possible that a scalar_token becomes invalid between the time
when the integration manager button was rendered and the user clicking
the link. Here we make a call to integration manager `/account`
before trying to render the integration manager, which ensures we
have a valid token for the integration manager to work with.

Moving the scalar token revalidation to the cases where it is actually
needed could make it possible to decrease the amount of Scalar /account
calls we do when switching rooms, which is currently 3.

Signed-off-by: Jason Robinson <jasonr@matrix.org>
2019-03-13 11:47:00 +02:00
..
auth Remove span to regain explicit whitespace for country options 2019-03-08 10:03:51 +00:00
avatars Disable clicking on room icon in a better way 2019-01-29 16:07:41 -06:00
context_menus Pass correct args when creating event permalink in context menu 2019-03-11 15:05:05 +00:00
create_room Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
dialogs Fix backup button in logout dialog 2019-02-27 11:45:00 +00:00
directory delint NetworkDropdown 2019-03-01 09:39:39 +00:00
elements Ensure scalar_token is valid before opening integrations manager 2019-03-13 11:47:00 +02:00
globals Convert image URLs in React to require calls 2019-01-17 22:06:49 -06:00
groups Remove DragDropContext from FlairSettings 2019-02-22 11:33:03 -07:00
messages restore scroll position when encrypted download attachment iframe is shown 2019-03-07 17:22:43 +01:00
right_panel Allow theming right panel header buttons 2019-02-13 10:47:04 +00:00
room_settings Don't re-enable the save button after saving profiles 2019-02-28 19:13:28 -07:00
rooms Ensure scalar_token is valid before opening integrations manager 2019-03-13 11:47:00 +02:00
settings Merge pull request #2757 from matrix-org/anoa/accept_all_invites 2019-03-08 14:55:59 -07:00
verification Fix typo "Scisors" -> "Scissors" 2019-02-15 11:26:14 -06:00
voip Convert image URLs in React to require calls 2019-01-17 22:06:49 -06:00