diff --git a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/app/OpenClawAppState.kt b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/app/OpenClawAppState.kt index 73bfefb..e906a0a 100644 --- a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/app/OpenClawAppState.kt +++ b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/app/OpenClawAppState.kt @@ -18,6 +18,8 @@ class OpenClawAppState( var serverConfig by mutableStateOf(preferences.loadServerConfig()) var feedbackMessage by mutableStateOf(null) var themeMode by mutableStateOf(preferences.loadThemeMode()) + var isShowingCachedData by mutableStateOf(false) + var cacheSavedAt by mutableStateOf(null) var isSyncing by mutableStateOf(false) var sendingSessionId by mutableStateOf(null) var isConnecting by mutableStateOf(false) diff --git a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/network/MobileGatewayApi.kt b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/network/MobileGatewayApi.kt index 3a461ab..bb5613a 100644 --- a/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/network/MobileGatewayApi.kt +++ b/composeApp/src/commonMain/kotlin/cn/xiaobai/openclawapp/network/MobileGatewayApi.kt @@ -18,7 +18,6 @@ import io.ktor.http.HttpHeaders import io.ktor.http.contentType import io.ktor.http.encodeURLPathPart import io.ktor.serialization.kotlinx.json.json -import kotlinx.io.bytestring.decodeBase64Bytes import kotlinx.serialization.json.Json class MobileGatewayApi(