Fix story name display in removal dialog.

fork-5.53.8
Alex Hart 2022-10-17 12:47:19 -03:00
rodzic ea6f6bf47d
commit 1d5a83668b
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

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