Fix lint errors

This commit is contained in:
Tulir Asokan 2020-03-05 13:44:54 +02:00
parent a8c5574bc8
commit 03d36f30ec
5 changed files with 4 additions and 8 deletions

View file

@ -20,7 +20,6 @@ import * as sdk from '../../../index';
import {_t} from '../../../languageHandler'; import {_t} from '../../../languageHandler';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import dis from '../../../dispatcher'; import dis from '../../../dispatcher';
import {wantsDateSeparator} from '../../../DateUtils';
import {MatrixEvent} from 'matrix-js-sdk'; import {MatrixEvent} from 'matrix-js-sdk';
import {makeUserPermalink, RoomPermalinkCreator} from "../../../utils/permalinks/Permalinks"; import {makeUserPermalink, RoomPermalinkCreator} from "../../../utils/permalinks/Permalinks";
import SettingsStore from "../../../settings/SettingsStore"; import SettingsStore from "../../../settings/SettingsStore";

View file

@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import React from 'react';
import MImageBody from './MImageBody'; import MImageBody from './MImageBody';
export default class MImageReplyBody extends MImageBody { export default class MImageReplyBody extends MImageBody {

View file

@ -123,6 +123,6 @@ export default createReactClass({
editState={this.props.editState} editState={this.props.editState}
onHeightChanged={this.props.onHeightChanged} onHeightChanged={this.props.onHeightChanged}
onMessageAllowed={this.onTileUpdate} onMessageAllowed={this.onTileUpdate}
/> : null /> : null;
}, },
}); });

View file

@ -19,7 +19,6 @@ import dis from '../../../dispatcher';
import * as sdk from '../../../index'; import * as sdk from '../../../index';
import { _t } from '../../../languageHandler'; import { _t } from '../../../languageHandler';
import RoomViewStore from '../../../stores/RoomViewStore'; import RoomViewStore from '../../../stores/RoomViewStore';
import SettingsStore from "../../../settings/SettingsStore";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import {RoomPermalinkCreator} from "../../../utils/permalinks/Permalinks"; import {RoomPermalinkCreator} from "../../../utils/permalinks/Permalinks";

View file

@ -97,7 +97,6 @@ class ReplyTile extends React.Component {
} }
componentWillUnmount() { componentWillUnmount() {
const client = this.context.matrixClient;
this.props.mxEvent.removeListener("Event.decrypted", this._onDecrypted); this.props.mxEvent.removeListener("Event.decrypted", this._onDecrypted);
} }
@ -185,7 +184,7 @@ class ReplyTile extends React.Component {
} }
let sender; let sender;
let needsSenderProfile = tileHandler !== 'messages.RoomCreate' && !isInfoMessage; const needsSenderProfile = tileHandler !== 'messages.RoomCreate' && !isInfoMessage;
if (needsSenderProfile) { if (needsSenderProfile) {
let text = null; let text = null;
@ -224,10 +223,10 @@ class ReplyTile extends React.Component {
showUrlPreview={false} showUrlPreview={false}
overrideBodyTypes={msgtypeOverrides} overrideBodyTypes={msgtypeOverrides}
overrideEventTypes={evOverrides} overrideEventTypes={evOverrides}
maxImageHeight={96}/> maxImageHeight={96} />
</a> </a>
</div> </div>
) );
} }
} }