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 client = MatrixClientPeg.get();
const room = client.getRoom(roomId); const room = client.getRoom(roomId);
const eventIndex = EventIndexPeg.get(); const eventIndex = EventIndexPeg.get();

View file

@ -207,7 +207,7 @@ export default class MessageContextMenu extends React.Component {
this.closeMenu(); this.closeMenu();
}; };
onPermalinkClick = (e: Event) => { onPermalinkClick = (e) => {
e.preventDefault(); e.preventDefault();
const ShareDialog = sdk.getComponent("dialogs.ShareDialog"); const ShareDialog = sdk.getComponent("dialogs.ShareDialog");
Modal.createTrackedDialog('share room message dialog', '', 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); this.openManager(0, true);
} }
openManager = async (i: number, force = false) => { openManager = async (i, force = false) => {
if (i === this.state.currentIndex && !force) return; if (i === this.state.currentIndex && !force) return;
const manager = this.state.managers[i]; 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 // XXX this class copies a lot from RoomTile.js
@replaceableComponent("views.groups.GroupInviteTile") @replaceableComponent("views.groups.GroupInviteTile")
export default class GroupInviteTile extends React.Component { export default class GroupInviteTile extends React.Component {
static propTypes: { static propTypes = {
group: PropTypes.object.isRequired, group: PropTypes.object.isRequired,
}; };