diff --git a/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/navigation/SidebarViewModel.kt b/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/navigation/SidebarViewModel.kt index 7146224e66fa081eb9051869637bfbf8c8782c10..d236e61f78a09fa1dcdaed15b8fec593f78f5cf5 100644 --- a/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/navigation/SidebarViewModel.kt +++ b/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/navigation/SidebarViewModel.kt @@ -86,6 +86,12 @@ constructor( val uiMode = _uiMode.asState() val account = _account.asState() + + /** + * A random number that changes everytime, the user changes the [UiMode] with [setUiMode] to [UiMode.BLOGS]. + * This can be useful to reset the blog screen to the main blog feed instead of showing an individual blog. + * When we have a proper navigation system in place, it can hopefully replace this hack. + */ val blogResetView = _blogResetView.asState() val mailboxProblem = _mailboxProblem.asState()