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

@ -352,14 +352,6 @@ func (f *frontendCLI) watchEvents(eventCh <-chan events.Event) { // nolint:gocyc
f.Printf("An address for %s was enabled. You may need to reconfigure your email client.\n", user.Username)
case events.UserAddressUpdated:
user, err := f.bridge.GetUserInfo(event.UserID)
if err != nil {
return
}
f.Printf("Address changed for %s. You may need to reconfigure your email client.\n", user.Username)
case events.UserAddressDisabled:
user, err := f.bridge.GetUserInfo(event.UserID)
if err != nil {