mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 15:51:31 +03:00
Fix lint errors
This commit is contained in:
parent
a8c5574bc8
commit
03d36f30ec
5 changed files with 4 additions and 8 deletions
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -123,6 +123,6 @@ export default createReactClass({
|
|||
editState={this.props.editState}
|
||||
onHeightChanged={this.props.onHeightChanged}
|
||||
onMessageAllowed={this.onTileUpdate}
|
||||
/> : null
|
||||
/> : null;
|
||||
},
|
||||
});
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue