mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Merge pull request #5248 from Bnyro/master
fix: don't fail to load channel page when auth instance down
This commit is contained in:
commit
7d920762bb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user