Accounts: Fix email check on dropdown

This commit is contained in:
Harvey Tindall 2021-05-23 14:35:01 +01:00
parent 168b217553
commit 519a5615cc
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 1 additions and 1 deletions

2
api.go
View File

@ -1203,7 +1203,7 @@ func (app *appContext) GetUsers(gc *gin.Context) {
}
if email, ok := app.storage.emails[jfUser.ID]; ok {
user.Email = email.Addr
user.NotifyThroughEmail = user.Email != ""
user.NotifyThroughEmail = email.Contact
}
expiry, ok := app.storage.users[jfUser.ID]
if ok {