Merge pull request #5248 from Bnyro/master

fix: don't fail to load channel page when auth instance down
This commit is contained in:
Bnyro 2023-11-29 15:50:22 +01:00 committed by GitHub
commit 7d920762bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,8 +142,7 @@ class ChannelFragment : Fragment() {
val channelId = channelId ?: return@launch
// fetch and update the subscription status
isSubscribed = SubscriptionHelper.isSubscribed(channelId)
if (isSubscribed == null) return@launch
isSubscribed = SubscriptionHelper.isSubscribed(channelId) ?: false
binding.channelSubscribe.setupSubscriptionButton(
channelId,