Skip to content

Commit 976ffe9

Browse files
committed
fix (feat): Wrong logic when checking for new version
1 parent 5e1858b commit 976ffe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/kotlin/org/dokiteam/doki/core/github/AppUpdateRepository.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ class AppUpdateRepository @Inject constructor(
7171
id = json.getLong("id"),
7272
url = json.getString("html_url"),
7373
name = if (currentBuildType == BUILD_TYPE_LEGACY) {
74-
"C" + json.getString("tag_name")
74+
"C" + json.getString("tag_name").takeLast(6)
7575
} else {
76-
"P" + json.getString("tag_name")
76+
"P" + json.getString("tag_name").takeLast(6)
7777
},
7878
apkSize = asset.getLong("size"),
7979
apkUrl = asset.getString("browser_download_url"),

0 commit comments

Comments
 (0)