1
0
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:
xmflsct 2023-05-20 22:47:58 +02:00
parent 23a8e5cd19
commit 1375bc95cd
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
3 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -1,3 +1,2 @@
tooot-ing愉快此版本包括以下改进和修复
- 长按底部菜单头像快速切换账户
- 修复投票通知显示
- 修复版本功能检查(如无法编辑嘟文)

View File

@ -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