fix: return correct type for notifications to work

This commit is contained in:
Fredrik Burmester
2025-02-21 10:49:02 +01:00
parent c0643f564d
commit f3b77b8547

View File

@@ -120,7 +120,11 @@ if (!Platform.isTV) {
if (!token || !url || !user?.Id) return;
fetchAndStoreRecentlyAdded(user.Id, url, token);
const result = await fetchAndStoreRecentlyAdded(user.Id, url, token);
if (!result) return BackgroundFetch.BackgroundFetchResult.NoData;
return BackgroundFetch.BackgroundFetchResult.NewData;
});
TaskManager.defineTask(BACKGROUND_FETCH_TASK, async () => {