commit c04b99434a7389d28128d66d5fb51c8345eb8c41
parent f375f9bc0e1f6ca77e27473464e4b81af1d094ff
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Fri, 1 Dec 2023 18:05:45 +0100
fix(app): sync friend streaks
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/src/main/kotlin/me/rhunk/snapenhance/messaging/ModDatabase.kt b/app/src/main/kotlin/me/rhunk/snapenhance/messaging/ModDatabase.kt
@@ -143,7 +143,7 @@ class ModDatabase(
database.execSQL("INSERT OR REPLACE INTO streaks (userId, notify, expirationTimestamp, length) VALUES (?, ?, ?, ?)", arrayOf(
friend.userId,
- streaks?.notify ?: false,
+ streaks?.notify ?: true,
friend.streakExpirationTimestamp,
friend.streakLength
))
diff --git a/app/src/main/kotlin/me/rhunk/snapenhance/ui/manager/sections/home/HomeSection.kt b/app/src/main/kotlin/me/rhunk/snapenhance/ui/manager/sections/home/HomeSection.kt
@@ -142,7 +142,7 @@ class HomeSection : Section() {
title = if (installationSummary.modInfo == null || installationSummary.modInfo.mappingsOutdated == true) {
"Mappings ${if (installationSummary.modInfo == null) "not generated" else "outdated"}"
} else {
- "Mappings version ${installationSummary.modInfo.mappingVersion}"
+ "Mappings are up-to-date"
}
) {
Button(onClick = {