mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Add missing semicolons
This commit is contained in:
parent
adfe1ac9bf
commit
997c7ffc96
1 changed files with 5 additions and 5 deletions
|
@ -55,12 +55,12 @@ export default class MessagePreview extends React.Component<IProps, IState> {
|
||||||
userId: "@erim:fink.fink",
|
userId: "@erim:fink.fink",
|
||||||
displayname: "Erimayas Fink",
|
displayname: "Erimayas Fink",
|
||||||
avatar_url: null,
|
avatar_url: null,
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async componentDidMount() {
|
async componentDidMount() {
|
||||||
// Fetch current user data
|
// Fetch current user data
|
||||||
const client = MatrixClientPeg.get()
|
const client = MatrixClientPeg.get();
|
||||||
const userId = client.getUserId();
|
const userId = client.getUserId();
|
||||||
const profileInfo = await client.getProfileInfo(userId);
|
const profileInfo = await client.getProfileInfo(userId);
|
||||||
const avatar_url = Avatar.avatarUrlForUser(
|
const avatar_url = Avatar.avatarUrlForUser(
|
||||||
|
@ -97,7 +97,7 @@ export default class MessagePreview extends React.Component<IProps, IState> {
|
||||||
},
|
},
|
||||||
"event_id": "$9999999999999999999999999999999999999999999",
|
"event_id": "$9999999999999999999999999999999999999999999",
|
||||||
"room_id": "!999999999999999999:matrix.org"
|
"room_id": "!999999999999999999:matrix.org"
|
||||||
}`))
|
}`));
|
||||||
|
|
||||||
// Fake it more
|
// Fake it more
|
||||||
event.sender = {
|
event.sender = {
|
||||||
|
@ -106,7 +106,7 @@ export default class MessagePreview extends React.Component<IProps, IState> {
|
||||||
getAvatarUrl: (..._) => {
|
getAvatarUrl: (..._) => {
|
||||||
return avatar_url;
|
return avatar_url;
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -124,6 +124,6 @@ export default class MessagePreview extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
return <div className={className}>
|
return <div className={className}>
|
||||||
<EventTile mxEvent={event} useIRCLayout={this.props.useIRCLayout} />
|
<EventTile mxEvent={event} useIRCLayout={this.props.useIRCLayout} />
|
||||||
</div>
|
</div>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue