docs: Clarify purpose of LaunchedEffect as part of algorithm.

This commit is contained in:
Skye Elliot 2025-12-19 11:09:19 +00:00
parent e9831d0e05
commit 42277cf604
No known key found for this signature in database
GPG key ID: 24EE6FEC019F6853

View file

@ -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)
}
}