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"