From c0681333bf9d9bbcd3e824075464408b2b87755d Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 18 Jan 2022 09:51:25 -0600 Subject: [PATCH] Fix /jumptodate using wrong MSC feature flag (#7563) As reported by @turt2live, https://matrix.to/#/!EMAlzkQQlZGEVTkDnD:matrix.org/$gnoVWQnIkYYL1i1cL8A4qRKJCFpNtq0Oj5khpzOq1mQ?via=half-shot.uk&via=matrix.org&via=element.io Also fixes camelCase typo --- src/SlashCommands.tsx | 2 +- src/components/views/settings/tabs/user/LabsUserSettingsTab.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SlashCommands.tsx b/src/SlashCommands.tsx index 790cc9c1ee..40fe36679c 100644 --- a/src/SlashCommands.tsx +++ b/src/SlashCommands.tsx @@ -334,7 +334,7 @@ export const Commands = [ ); dis.dispatch({ action: Action.ViewRoom, - eventId, + event_id: eventId, highlighted: true, room_id: roomId, }); diff --git a/src/components/views/settings/tabs/user/LabsUserSettingsTab.tsx b/src/components/views/settings/tabs/user/LabsUserSettingsTab.tsx index 2e9ffc9fb9..a7c7f4df49 100644 --- a/src/components/views/settings/tabs/user/LabsUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/LabsUserSettingsTab.tsx @@ -61,7 +61,7 @@ export default class LabsUserSettingsTab extends React.Component<{}, IState> { this.setState({ showHiddenReadReceipts }); }); - MatrixClientPeg.get().doesServerSupportUnstableFeature("org.matrix.msc2716").then((showJumpToDate) => { + MatrixClientPeg.get().doesServerSupportUnstableFeature("org.matrix.msc3030").then((showJumpToDate) => { this.setState({ showJumpToDate }); });