Fix parsing errors

This commit is contained in:
J. Ryan Stinnett 2021-06-29 13:23:13 +01:00
parent 2be40ad08a
commit b501665971
5 changed files with 6 additions and 6 deletions

View File

@ -159,7 +159,7 @@ class FilePanel extends React.Component {
}
};
async updateTimelineSet(roomId: string) {
async updateTimelineSet(roomId) {
const client = MatrixClientPeg.get();
const room = client.getRoom(roomId);
const eventIndex = EventIndexPeg.get();

View File

@ -207,7 +207,7 @@ export default class MessageContextMenu extends React.Component {
this.closeMenu();
};
onPermalinkClick = (e: Event) => {
onPermalinkClick = (e) => {
e.preventDefault();
const ShareDialog = sdk.getComponent("dialogs.ShareDialog");
Modal.createTrackedDialog('share room message dialog', '', ShareDialog, {

View File

@ -63,11 +63,11 @@ export default class TabbedIntegrationManagerDialog extends React.Component {
};
}
componentDidMount(): void {
componentDidMount() {
this.openManager(0, true);
}
openManager = async (i: number, force = false) => {
openManager = async (i, force = false) => {
if (i === this.state.currentIndex && !force) return;
const manager = this.state.managers[i];

View File

@ -187,4 +187,4 @@ export default class PersistedElement extends React.Component {
}
}
export const getPersistKey = (appId: string) => 'widget_' + appId;
export const getPersistKey = (appId) => 'widget_' + appId;

View File

@ -32,7 +32,7 @@ import {mediaFromMxc} from "../../../customisations/Media";
// XXX this class copies a lot from RoomTile.js
@replaceableComponent("views.groups.GroupInviteTile")
export default class GroupInviteTile extends React.Component {
static propTypes: {
static propTypes = {
group: PropTypes.object.isRequired,
};