From 42277cf604000c282d355741de98849363d7a110 Mon Sep 17 00:00:00 2001 From: Skye Elliot Date: Fri, 19 Dec 2025 11:09:19 +0000 Subject: [PATCH] docs: Clarify purpose of `LaunchedEffect` as part of algorithm. --- .../impl/crypto/historyvisible/HistoryVisibleStatePresenter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/crypto/historyvisible/HistoryVisibleStatePresenter.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/crypto/historyvisible/HistoryVisibleStatePresenter.kt index 71aa9fcc33..e79681cd5c 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/crypto/historyvisible/HistoryVisibleStatePresenter.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/crypto/historyvisible/HistoryVisibleStatePresenter.kt @@ -40,6 +40,8 @@ class HistoryVisibleStatePresenter( LaunchedEffect(isHistoryVisible, acknowledged) { if (!isHistoryVisible && acknowledged) { + // Clear the dismissed flag, if it is set to ensure that if a room is changed public -> private -> public, + // we show the banner again when it is set back to public. repository.setAcknowledged(room.roomId, false) } }