mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
docs: Clarify purpose of LaunchedEffect as part of algorithm.
This commit is contained in:
+2
@@ -40,6 +40,8 @@ class HistoryVisibleStatePresenter(
|
|||||||
|
|
||||||
LaunchedEffect(isHistoryVisible, acknowledged) {
|
LaunchedEffect(isHistoryVisible, acknowledged) {
|
||||||
if (!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)
|
repository.setAcknowledged(room.roomId, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user