mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
notifications without login
This commit is contained in:
parent
ffb01d2b6c
commit
6dad539aa9
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user