You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Auto-fix lint errors
This commit is contained in:
@@ -39,7 +39,7 @@ export default class SenderProfile extends React.Component<IProps, IState> {
|
||||
private unmounted: boolean;
|
||||
|
||||
constructor(props: IProps) {
|
||||
super(props)
|
||||
super(props);
|
||||
const senderId = this.props.mxEvent.getSender();
|
||||
|
||||
this.state = {
|
||||
@@ -56,7 +56,6 @@ export default class SenderProfile extends React.Component<IProps, IState> {
|
||||
this.getPublicisedGroups();
|
||||
}
|
||||
|
||||
|
||||
this.context.on('RoomState.events', this.onRoomStateEvents);
|
||||
}
|
||||
|
||||
@@ -70,7 +69,7 @@ export default class SenderProfile extends React.Component<IProps, IState> {
|
||||
const userGroups = await FlairStore.getPublicisedGroupsCached(
|
||||
this.context, this.props.mxEvent.getSender(),
|
||||
);
|
||||
this.setState({userGroups});
|
||||
this.setState({ userGroups });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,9 +105,9 @@ export default class SenderProfile extends React.Component<IProps, IState> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const {mxEvent} = this.props;
|
||||
const { mxEvent } = this.props;
|
||||
const colorClass = getUserNameColorClass(mxEvent.getSender());
|
||||
const {msgtype} = mxEvent.getContent();
|
||||
const { msgtype } = mxEvent.getContent();
|
||||
|
||||
const disambiguate = mxEvent.sender?.disambiguate;
|
||||
const displayName = mxEvent.sender?.rawDisplayName || mxEvent.getSender() || "";
|
||||
|
||||
Reference in New Issue
Block a user