Merge pull request #7345 from Bnyro/master

fix: confirm unsubscribe preference only works if disabled instead of enabled
This commit is contained in:
Bnyro 2025-04-25 15:34:43 +02:00 committed by GitHub
commit 75aa69d096
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,7 +62,7 @@ fun TextView.setupSubscriptionButton(
updateUIStateAndNotifyObservers() updateUIStateAndNotifyObservers()
} }
if (!PreferenceHelper.getBoolean(PreferenceKeys.CONFIRM_UNSUBSCRIBE, false)) { if (PreferenceHelper.getBoolean(PreferenceKeys.CONFIRM_UNSUBSCRIBE, false)) {
showUnsubscribeDialog(context, channelName) { showUnsubscribeDialog(context, channelName) {
CoroutineScope(Dispatchers.Main).launch { unsubscribeAction() } CoroutineScope(Dispatchers.Main).launch { unsubscribeAction() }
} }