From 2205de390fa7aeb7aabf1b4adae37f2d0390df60 Mon Sep 17 00:00:00 2001 From: "Evgeny @ SimpleX Chat" <259188159+evgeny-simplex@users.noreply.github.com> Date: Wed, 11 Nov 2026 11:44:59 +0000 Subject: [PATCH] android, desktop: show What's new once while conditions are pending (#8123) * android, desktop: show What's new once while conditions are pending * core: document how changed conditions are announced --- .../kotlin/chat/simplex/common/views/chatlist/ChatListView.kt | 3 +++ src/Simplex/Chat/Operators.hs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt index 1ce01f4a69..3c399ab1e9 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt @@ -239,12 +239,14 @@ fun ChatListView(chatModel: ChatModel, userPickerState: MutableStateFlow WhatsNewView(close = close, updatedConditions = showUpdatedConditions) } } } @@ -956,6 +958,7 @@ private fun ErrorSettingsView() { } private var lazyListState = 0 to 0 +private var noticesShown = false enum class ScrollDirection { Up, Down, Idle diff --git a/src/Simplex/Chat/Operators.hs b/src/Simplex/Chat/Operators.hs index d15e035814..c55578256f 100644 --- a/src/Simplex/Chat/Operators.hs +++ b/src/Simplex/Chat/Operators.hs @@ -59,6 +59,10 @@ import Simplex.Messaging.Protocol (AProtocolType (..), ProtoServerWithAuth (..), import Simplex.Messaging.Transport.Client (TransportHost (..)) import Simplex.Messaging.Util (atomicModifyIORef'_, safeDecodeUtf8) +-- Change the conditions only in a release whose What's new announces the change: +-- the apps show changed conditions as a link in What's new, also in a release without other news. +-- The notice is recorded when What's new is shown, and the conditions are accepted automatically +-- 31 days later, if the notice was shown within 14 days after the app added the conditions to the database. usageConditionsCommit :: Text usageConditionsCommit = "5cb85b913989aa4dc618a0a47ffb9a758e44f375"