Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d1a637b

Browse files
committed
Add jump to date feature flag
1 parent d15e609 commit d1a637b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/SlashCommands.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ export const Commands = [
291291
command: 'jumptodate',
292292
args: '<date>',
293293
description: _td('Jump to the given date in the timeline'),
294+
isEnabled: () => SettingsStore.getValue("feature_jump_to_date"),
294295
runFn: function(roomId, args) {
295296
if (args) {
296297
return success((async () => {

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@
861861
"Meta Spaces": "Meta Spaces",
862862
"Use new room breadcrumbs": "Use new room breadcrumbs",
863863
"New spotlight search experience": "New spotlight search experience",
864+
"Jump to date (adds /jumptodate). Also requires your homeserver to have MSC3030 enabled": "Jump to date (adds /jumptodate). Also requires your homeserver to have MSC3030 enabled",
864865
"Don't send read receipts": "Don't send read receipts",
865866
"Font size": "Font size",
866867
"Use custom size": "Use custom size",

src/settings/Settings.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,13 @@ export const SETTINGS: {[setting: string]: ISetting} = {
367367
displayName: _td("New spotlight search experience"),
368368
default: false,
369369
},
370+
"feature_jump_to_date": {
371+
isFeature: true,
372+
labsGroup: LabGroup.Messaging,
373+
displayName: _td("Jump to date (adds /jumptodate). Also requires your homeserver to have MSC3030 enabled"),
374+
supportedLevels: LEVELS_FEATURE,
375+
default: false,
376+
},
370377
"RoomList.backgroundImage": {
371378
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
372379
default: null,

0 commit comments

Comments
 (0)