We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4305c6a commit 5ba1611Copy full SHA for 5ba1611
1 file changed
apps/web/lib/Notification.ts
@@ -341,9 +341,11 @@ export async function sendFirstViewEmail(
341
if (!params.isAnonymous && params.viewerUserId === videoWithOwner.ownerId)
342
return;
343
344
+ const preferences = videoWithOwner.preferences as UserPreferences;
345
if (params.isAnonymous) {
- const preferences = videoWithOwner.preferences as UserPreferences;
346
if (preferences?.notifications?.pauseAnonViews) return;
347
+ } else {
348
+ if (preferences?.notifications?.pauseViews) return;
349
}
350
351
const [result] = await database
0 commit comments