mirror of
https://github.com/tooot-app/app
synced 2025-03-12 01:20:06 +01:00
Fix version check
This commit is contained in:
parent
23a8e5cd19
commit
1375bc95cd
@ -1,3 +1,2 @@
|
|||||||
Enjoy toooting! This version includes following improvements and fixes:
|
Enjoy toooting! This version includes following improvements and fixes:
|
||||||
- Long press avatar in tab bar to quickly switch to another account
|
- Fixed functionality version check (e.g. cannot edit own toots)
|
||||||
- Fix poll notifications wrongly greyed out
|
|
@ -1,3 +1,2 @@
|
|||||||
tooot-ing愉快!此版本包括以下改进和修复:
|
tooot-ing愉快!此版本包括以下改进和修复:
|
||||||
- 长按底部菜单头像快速切换账户
|
- 修复版本功能检查(如无法编辑嘟文)
|
||||||
- 修复投票通知显示
|
|
@ -34,7 +34,7 @@ const features: { feature: Features; version: number }[] = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
export const featureCheck = (feature: Features, v?: string): boolean =>
|
export const featureCheck = (feature: Features, v?: string): boolean =>
|
||||||
v
|
v || getAccountStorage.string('version')
|
||||||
? (features.find(f => f.feature === feature)?.version || 999) <=
|
? (features.find(f => f.feature === feature)?.version || 999) <=
|
||||||
parseFloat(v || getAccountStorage.string('version'))
|
parseFloat(v || getAccountStorage.string('version'))
|
||||||
: false
|
: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user