File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import { observer } from "mobx-react";
23
23
import * as React from "react" ;
24
24
import { useState } from "react" ;
25
25
26
- export const DEFAULT_NOTIFICATION_LEVEL = "none " ;
26
+ export const DEFAULT_NOTIFICATION_LEVEL = "mentions-and-replies " ;
27
27
export const notifyAboutKeyToLabel = {
28
28
all : "All comments" ,
29
29
"mentions-and-replies" : "Replies only" ,
Original file line number Diff line number Diff line change @@ -97,12 +97,15 @@ async function processUserForProject(
97
97
project : Project ,
98
98
notificationsByUser : UserProjectRecord
99
99
) {
100
- const notificationSettings = await dbManager . tryGetNotificationSettings (
101
- user . id ,
102
- toOpaque ( projectId )
103
- ) ;
104
-
105
- if ( ! notificationSettings ) {
100
+ const notificationSettings : ApiNotificationSettings =
101
+ ( await dbManager . tryGetNotificationSettings (
102
+ user . id ,
103
+ toOpaque ( projectId )
104
+ ) ) || {
105
+ notifyAbout : "mentions-and-replies" ,
106
+ } ;
107
+
108
+ if ( notificationSettings . notifyAbout === "none" ) {
106
109
return ;
107
110
}
108
111
You can’t perform that action at this time.
0 commit comments