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 PropTypes from 'prop-types';
import dis from '../../../dispatcher';
import {wantsDateSeparator} from '../../../DateUtils';
import {MatrixEvent} from 'matrix-js-sdk';
import {makeUserPermalink, RoomPermalinkCreator} from "../../../utils/permalinks/Permalinks";
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.
*/
import React from 'react';
import MImageBody from './MImageBody';
export default class MImageReplyBody extends MImageBody {

View file

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

View file

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

View file

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