From c76ace40ebfd6bdfcffc062d8cecb16a8d841b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Wed, 22 May 2024 21:05:17 +0200 Subject: [PATCH] Fix mapping refresh key --- .../github/wulkanowy/data/repositories/WulkanowyRepository.kt | 2 +- app/src/main/java/io/github/wulkanowy/utils/RefreshUtils.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/github/wulkanowy/data/repositories/WulkanowyRepository.kt b/app/src/main/java/io/github/wulkanowy/data/repositories/WulkanowyRepository.kt index d961a638..815f8b75 100644 --- a/app/src/main/java/io/github/wulkanowy/data/repositories/WulkanowyRepository.kt +++ b/app/src/main/java/io/github/wulkanowy/data/repositories/WulkanowyRepository.kt @@ -25,7 +25,7 @@ class WulkanowyRepository @Inject constructor( private val saveFetchResultMutex = Mutex() - private val cacheKey = "mapping" + private val cacheKey = "mapping_refresh_key" fun getAdminMessages(): Flow>> = networkBoundResource( diff --git a/app/src/main/java/io/github/wulkanowy/utils/RefreshUtils.kt b/app/src/main/java/io/github/wulkanowy/utils/RefreshUtils.kt index 8f4ceb50..4cce4be4 100644 --- a/app/src/main/java/io/github/wulkanowy/utils/RefreshUtils.kt +++ b/app/src/main/java/io/github/wulkanowy/utils/RefreshUtils.kt @@ -31,7 +31,7 @@ fun getRefreshKey(name: String, mailbox: Mailbox?, folder: MessageFolder): Strin } fun getRefreshKey(name: String): String { - return "${name}_refresh_key" + return name } class AutoRefreshHelper @Inject constructor(