Fix incorrect unsubscription behaviour in the public 'Manage' flow. Closes #1407.

This commit is contained in:
Kailash Nadh 2023-08-06 11:38:13 +05:30
parent 104c4fc993
commit eafae46409

View file

@ -313,7 +313,7 @@ func handleSubscriptionPrefs(c echo.Context) error {
unsubUUIDs := make([]string, 0, len(req.ListUUIDs))
for _, s := range subs {
if _, ok := reqUUIDs[s.UUID]; !ok {
if _, ok := reqUUIDs[s.UUID]; ok {
unsubUUIDs = append(unsubUUIDs, s.UUID)
}
}