diff --git a/features/home/src/main/kotlin/app/dapk/st/home/BetaVersionUpgradeUseCase.kt b/features/home/src/main/kotlin/app/dapk/st/home/BetaVersionUpgradeUseCase.kt index 4a1168a..565e810 100644 --- a/features/home/src/main/kotlin/app/dapk/st/home/BetaVersionUpgradeUseCase.kt +++ b/features/home/src/main/kotlin/app/dapk/st/home/BetaVersionUpgradeUseCase.kt @@ -25,8 +25,6 @@ class BetaVersionUpgradeUseCase( return when (previousVersion) { null -> false else -> currentVersion > previousVersion - }.also { - applicationPreferences.setVersion(ApplicationVersion(currentVersion)) } } @@ -38,7 +36,8 @@ class BetaVersionUpgradeUseCase( } } - fun notifyUpgraded() { + suspend fun notifyUpgraded() { + applicationPreferences.setVersion(ApplicationVersion(buildMeta.versionCode)) _continuation?.resume(Unit) _continuation = null } diff --git a/tools/beta-release/release.js b/tools/beta-release/release.js index 43f3a59..e054710 100644 --- a/tools/beta-release/release.js +++ b/tools/beta-release/release.js @@ -215,7 +215,7 @@ const sendReleaseMessage = async (release, config) => { const content = { "body": `New release`, "format": "org.matrix.custom.html", - "formatted_body": `New release rolling out ${release.tag_name}`, + "formatted_body": `New release rolling out ${release.tag_name}`, "msgtype": "m.text" } await client.sendEvent(config.matrixRoomId, "m.room.message", content, "") diff --git a/version.json b/version.json index 584be1d..52d05d1 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "code": 26, - "name": "06/11/2022-V1" + "code": 27, + "name": "06/11/2022-V2" } \ No newline at end of file