feat(#36): Notification rework with single and all comments mark as read

This commit is contained in:
2026-01-18 18:42:10 +01:00
parent 105baf7c86
commit db788c4ee3
31 changed files with 711 additions and 94 deletions

View File

@@ -12,9 +12,17 @@ export function useUser() {
userId: string,
email: string | null,
emailOnFormCreated: boolean,
emailOnFormSubmitted: boolean
emailOnFormSubmitted: boolean,
emailOnFormUpdated: boolean,
emailOnCommentAdded: boolean
): Promise<UserDto> {
const updateDto: UpdateEmailPreferencesDto = { email, emailOnFormCreated, emailOnFormSubmitted }
const updateDto: UpdateEmailPreferencesDto = {
email,
emailOnFormCreated,
emailOnFormSubmitted,
emailOnFormUpdated,
emailOnCommentAdded
}
return await userApi.updateEmailPreferences(userId, updateDto)
}