diff --git a/app/src/main/java/com/keylesspalace/tusky/components/viewthread/ViewThreadFragment.kt b/app/src/main/java/com/keylesspalace/tusky/components/viewthread/ViewThreadFragment.kt index e38d7f36..7a074c47 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/viewthread/ViewThreadFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/viewthread/ViewThreadFragment.kt @@ -244,7 +244,7 @@ class ViewThreadFragment : } } - lifecycleScope.launch { + viewLifecycleOwner.lifecycleScope.launch { viewModel.errors.collect { throwable -> Log.w(TAG, "failed to load status context", throwable) Snackbar.make(binding.root, R.string.error_generic, Snackbar.LENGTH_SHORT)