Stopped notifications from being sent if the source doesn't download (#218)

This commit is contained in:
Kieran authored and GitHub committed 2024-05-01 08:56:15 -07:00
1 parent 3f74f199dc
commit 8051107d32
2 files changed
+16 -1

No files matched your search

@@ -53,7 +53,11 @@ defmodule Pinchflat.Notifications.SourceNotifications do
end
defp relevant_media_item_count(source) do
pending_media_item_count(source) + downloaded_media_item_count(source)
if source.download_media do
pending_media_item_count(source) + downloaded_media_item_count(source)
else
0
end
end
defp pending_media_item_count(source) do