Fix story name display in removal dialog.

This commit is contained in:
Alex Hart
2022-10-17 12:47:19 -03:00
parent ea6f6bf47d
commit 1d5a83668b
2 changed files with 2 additions and 1 deletions

View File

@@ -97,7 +97,7 @@ class GroupStorySettingsFragment : DSLSettingsFragment(menuId = R.menu.story_gro
onClick = {
StoryDialogs.removeGroupStory(
requireContext(),
state.name
viewModel.titleSnapshot
) {
viewModel.doNotDisplayAsStory()
}

View File

@@ -19,6 +19,7 @@ class GroupStorySettingsViewModel(private val groupId: GroupId) : ViewModel() {
private val store = Store(GroupStorySettingsState())
val state: LiveData<GroupStorySettingsState> = store.stateLiveData
val titleSnapshot: String get() = store.state.name
init {
val group = LiveGroup(groupId)