mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 19:26:17 +00:00
Fix story name display in removal dialog.
This commit is contained in:
@@ -97,7 +97,7 @@ class GroupStorySettingsFragment : DSLSettingsFragment(menuId = R.menu.story_gro
|
||||
onClick = {
|
||||
StoryDialogs.removeGroupStory(
|
||||
requireContext(),
|
||||
state.name
|
||||
viewModel.titleSnapshot
|
||||
) {
|
||||
viewModel.doNotDisplayAsStory()
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user