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