notifications without login

This commit is contained in:
Bnyro 2022-08-06 12:05:01 +02:00
parent ffb01d2b6c
commit 6dad539aa9

View File

@ -89,7 +89,10 @@ object NotificationHelper {
val token = PreferenceHelper.getToken() val token = PreferenceHelper.getToken()
runBlocking { runBlocking {
val task = async { val task = async {
RetrofitInstance.authApi.getFeed(token) if (token != "") RetrofitInstance.authApi.getFeed(token)
else RetrofitInstance.authApi.getUnauthenticatedFeed(
SubscriptionHelper.getFormattedLocalSubscriptions()
)
} }
// fetch the users feed // fetch the users feed
val videoFeed = try { val videoFeed = try {