jellyseer: revert auto-nulling of NotifTypes

All-zeros in NotifTypes means the user shouldn't receive any
communication, which is a state we'd like to store in/apply from a profile.
This commit is contained in:
Harvey Tindall
2024-07-30 16:53:40 +01:00
parent 769a7c45da
commit 35f8337a36
3 changed files with 22 additions and 20 deletions
+3 -2
View File
@@ -356,9 +356,10 @@ func (js *Jellyseerr) GetNotificationPreferencesByID(jellyseerrID int64) (Notifi
}
func (js *Jellyseerr) ApplyNotificationsTemplateToUser(jfID string, tmpl NotificationsTemplate) error {
if tmpl.NotifTypes.Empty() {
// This behaviour is not desired, this being all-zero means no notifications, which is a settings state we'd want to store!
/* if tmpl.NotifTypes.Empty() {
tmpl.NotifTypes = nil
}
}*/
u, err := js.MustGetUser(jfID)
if err != nil {
return err