Skip to content

Commit

Permalink
Disable both in Appp and eail notifications for video posted events (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanakram3 authored Feb 22, 2024
1 parent a0eaeda commit effc0f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/notification/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ function notificationPrefAllTrue(): NotificationPreference {
return new NotificationPreference({ inAppEnabled: true, emailEnabled: true })
}

function notificationPrefAllFalse(): NotificationPreference {
return new NotificationPreference({ inAppEnabled: false, emailEnabled: false })
}

export function defaultNotificationPreferences(): AccountNotificationPreferences {
return new AccountNotificationPreferences({
channelExcludedFromApp: notificationPrefAllTrue(),
Expand All @@ -47,7 +51,7 @@ export function defaultNotificationPreferences(): AccountNotificationPreferences
channelCreated: notificationPrefAllTrue(),
replyToComment: notificationPrefAllTrue(),
reactionToComment: notificationPrefAllTrue(),
videoPosted: notificationPrefAllTrue(),
videoPosted: notificationPrefAllFalse(),
newNftOnAuction: notificationPrefAllTrue(),
newNftOnSale: notificationPrefAllTrue(),
higherBidThanYoursMade: notificationPrefAllTrue(),
Expand Down

0 comments on commit effc0f0

Please sign in to comment.