fix(GODT-2505): show notification only for cases when user needs to do actions.

This commit is contained in:
Jakub
2023-03-20 17:02:37 +01:00
parent 8b80938e49
commit 7d8e71c9ea
3 changed files with 8 additions and 13 deletions

View File

@ -288,9 +288,12 @@ func (s *Service) watchEvents() {
case events.UserAddressCreated:
_ = s.SendEvent(NewMailAddressChangeEvent(event.Email))
case events.UserAddressUpdated:
case events.UserAddressEnabled:
_ = s.SendEvent(NewMailAddressChangeEvent(event.Email))
case events.UserAddressDisabled:
_ = s.SendEvent(NewMailAddressChangeLogoutEvent(event.Email))
case events.UserAddressDeleted:
_ = s.SendEvent(NewMailAddressChangeLogoutEvent(event.Email))