element-portable/src/components/views/rooms
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
..
AppsDrawer.js Ensure scalar_token is valid before opening integrations manager 2019-03-13 11:47:00 +02:00
Autocomplete.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
AuxPanel.js Fix simple header counters to correctly handle zero, take two 2019-03-12 10:00:10 +00:00
E2EIcon.js only wrap e2e icon in button if there is a click handler 2019-02-12 19:59:31 +01:00
EntityTile.js Use CSS for hovering the tile 2019-03-07 14:55:17 -07:00
EventTile.js rename onWidgetLoad to onHeightChanged 2019-03-07 17:02:19 +01:00
ForwardMessage.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
JumpToBottomButton.js missing semicolon 2019-01-22 14:52:22 +01:00
LinkPreviewWidget.js rename onWidgetLoad to onHeightChanged 2019-03-07 17:02:19 +01:00
MemberDeviceInfo.js restyle unknown devices dialog 2019-02-12 18:34:35 +01:00
MemberInfo.js Convert PowerSelector to use mxField instead 2019-02-28 19:00:57 -07:00
MemberList.js pass through className 2019-02-24 04:44:38 +00:00
MemberTile.js Show nearest lower badge, e.g show Mod for 51... etc 2019-02-26 23:59:40 +00:00
MessageComposer.js Merge branches 'develop' and 't3chguy/composer_demote' of github.com:matrix-org/matrix-react-sdk into t3chguy/composer_demote 2019-02-27 00:28:16 +00:00
MessageComposerInput.js Add missing permalinkCreator prop 2019-03-01 09:36:36 +00:00
PinnedEventsPanel.js Convert image URLs in React to require calls 2019-01-17 22:06:49 -06:00
PinnedEventTile.js rename onWidgetLoad to onHeightChanged 2019-03-07 17:02:19 +01:00
PresenceLabel.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
ReadReceiptMarker.js put userId next to member in read receipt, fall back when member missing 2018-10-10 16:14:09 +02:00
ReplyPreview.js Add missing permalinkCreator prop 2019-03-01 09:36:36 +00:00
RoomBreadcrumbs.js copyright 2019-02-12 12:21:40 +01:00
RoomDetailList.js make RoomDetailRow reusable for the Room Directory 2017-11-19 12:49:26 +00:00
RoomDetailRow.js Refactor to use HtmlUtils for linkifying and sanitizing 2019-01-31 22:36:08 +01:00
RoomDropTarget.js Fix more lint errors 2018-10-11 22:50:24 -05:00
RoomHeader.js Allow theming room header buttons 2019-02-13 10:47:04 +00:00
RoomList.js lint 2019-02-11 16:27:29 +01:00
RoomNameEditor.js Store component state for editors 2018-02-13 12:01:36 +00:00
RoomPreviewBar.js Convert image URLs in React to require calls 2019-01-17 22:06:49 -06:00
RoomRecoveryReminder.js flag todo 2019-02-12 17:53:00 +00:00
RoomTile.js update RoomTile notificationCount through props so updates are consistent 2019-02-11 15:40:17 +01:00
RoomTooltip.js make RoomTooltip generic and add ContextMenu&Tooltip to GroupInviteTile 2018-06-12 15:23:11 +01:00
RoomTopicEditor.js Store component state for editors 2018-02-13 12:01:36 +00:00
RoomUpgradeWarningBar.js Appease the linter 2019-01-28 18:57:11 -07:00
SearchableEntityList.js Convert image URLs in React to require calls 2019-01-17 22:06:49 -06:00
SearchBar.js remove commented out code from shifting things around 2019-01-16 13:04:49 +01:00
SearchResultTile.js rename onWidgetLoad to onHeightChanged 2019-03-07 17:02:19 +01:00
SimpleRoomHeader.js Convert image URLs in React to require calls 2019-01-17 22:06:49 -06:00
Stickerpicker.js Ensure scalar_token is valid before opening integrations manager 2019-03-13 11:47:00 +02:00
TopUnreadMessagesBar.js copyright 2019-01-22 14:51:11 +01:00
UserTile.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
WhoIsTypingTile.js view user on click typing tile 2019-02-24 02:30:45 +00:00