misc: restore <0.19.4 support
This commit is contained in:
1 parent
7305ee6e0c
commit
8785172ae5
3 files changed
+35
-27
No files matched your search
@@ -62,7 +62,7 @@
|
||||
})
|
||||
|
||||
afterNavigate(() => {
|
||||
$virtualizer.scrollToIndex($postFeeds[feedId].lastSeen ?? 0)
|
||||
$virtualizer.scrollToIndex($postFeeds[feedId]?.lastSeen ?? 0)
|
||||
})
|
||||
|
||||
export let feedData: PostFeed['data']
|
||||
@@ -122,7 +122,9 @@
|
||||
|
||||
if (!id) return
|
||||
|
||||
$postFeeds[feedId].lastSeen = Number(id)
|
||||
postFeeds.updateFeed(feedId, {
|
||||
lastSeen: Number(id),
|
||||
})
|
||||
observer.unobserve(element)
|
||||
})
|
||||
}
|
||||
|
||||
+3
-1
@@ -9,6 +9,8 @@ const FEATURES = {
|
||||
hidePosts: '0.19.4',
|
||||
altText: '0.19.4',
|
||||
customThumbnail: '0.19.4',
|
||||
mediaAndVotes: '0.19.4',
|
||||
distinguishComments: '0.19.4',
|
||||
}
|
||||
|
||||
type Feature = keyof typeof FEATURES
|
||||
@@ -19,7 +21,7 @@ type Feature = keyof typeof FEATURES
|
||||
export const feature = (feature: Feature, version: string = '0.0.0'): boolean =>
|
||||
versionIsSupported(version, FEATURES[feature])
|
||||
|
||||
export const MINIMUM_VERSION = '0.19.4'
|
||||
export const MINIMUM_VERSION = '0.19.0'
|
||||
export const MAXIMUM_VERSION = '0.999'
|
||||
|
||||
export const versionIsSupported = (v: string, minimum: string) => {
|
||||
|
||||
Reference in new issue
Block a user