diff --git a/src/constants.ts b/src/constants.ts index 7aa74bcc..69168177 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -82,7 +82,7 @@ export const ExtendedKind = { RELAY_REVIEW: 31987, GROUP_METADATA: 39000, ADDRESSABLE_NORMAL_VIDEO: 34235, - ADDRESSABLE_SHORT_VIDEO: 24236 + ADDRESSABLE_SHORT_VIDEO: 34236 } export const SUPPORTED_KINDS = [ diff --git a/src/services/local-storage.service.ts b/src/services/local-storage.service.ts index a0515130..4d5967bc 100644 --- a/src/services/local-storage.service.ts +++ b/src/services/local-storage.service.ts @@ -177,10 +177,14 @@ class LocalStorageService { showKindSet.add(ExtendedKind.ADDRESSABLE_NORMAL_VIDEO) showKindSet.add(ExtendedKind.ADDRESSABLE_SHORT_VIDEO) } + if (showKindsVersion < 3 && showKindSet.has(24236)) { + showKindSet.delete(24236) // remove typo kind + showKindSet.add(ExtendedKind.ADDRESSABLE_SHORT_VIDEO) + } this.showKinds = Array.from(showKindSet) } window.localStorage.setItem(StorageKey.SHOW_KINDS, JSON.stringify(this.showKinds)) - window.localStorage.setItem(StorageKey.SHOW_KINDS_VERSION, '2') + window.localStorage.setItem(StorageKey.SHOW_KINDS_VERSION, '3') this.hideContentMentioningMutedUsers = window.localStorage.getItem(StorageKey.HIDE_CONTENT_MENTIONING_MUTED_USERS) === 'true'