From 884322f82c3799da2194749123d2c477485b6943 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 2 Jun 2017 21:57:42 +0100 Subject: [PATCH 1/2] remove unused imports Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/HomePage.js | 2 -- src/components/views/rooms/DNDRoomTile.js | 1 - 2 files changed, 3 deletions(-) diff --git a/src/components/structures/HomePage.js b/src/components/structures/HomePage.js index 8d44c90a2e..9864b2e9ca 100644 --- a/src/components/structures/HomePage.js +++ b/src/components/structures/HomePage.js @@ -18,8 +18,6 @@ limitations under the License. 'use strict'; import React from 'react'; -import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg'; -import sdk from 'matrix-react-sdk'; module.exports = React.createClass({ displayName: 'HomePage', diff --git a/src/components/views/rooms/DNDRoomTile.js b/src/components/views/rooms/DNDRoomTile.js index 6abb5bd06c..7857da9dbe 100644 --- a/src/components/views/rooms/DNDRoomTile.js +++ b/src/components/views/rooms/DNDRoomTile.js @@ -20,7 +20,6 @@ import React from 'react'; import {DragSource} from 'react-dnd'; import {DropTarget} from 'react-dnd'; -import dis from 'matrix-react-sdk/lib/dispatcher'; import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg'; import sdk from 'matrix-react-sdk'; import { _t } from 'matrix-react-sdk/lib/languageHandler'; From cb3fa16cd0958d7ae8a7f3c86157bdcc8c1516b1 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 2 Jun 2017 22:04:01 +0100 Subject: [PATCH 2/2] install text-encoding-utf-8 so we're not relying on it from react-sdk implicitly/transitively (not nice) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 73ebc00950..bcbd89fa9b 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ "react-dom": "^15.4.0", "react-gemini-scrollbar": "matrix-org/react-gemini-scrollbar#5e97aef", "sanitize-html": "^1.11.1", + "text-encoding-utf-8": "^1.0.1", "ua-parser-js": "^0.7.10", "url": "^0.11.0" },