db: remove remaining storage.loadX calls

This commit is contained in:
Harvey Tindall
2023-06-25 20:18:40 +01:00
parent ea0598e507
commit e1c215b72e
4 changed files with 0 additions and 13 deletions

View File

@@ -42,11 +42,6 @@ func (app *appContext) MyDetails(gc *gin.Context) {
resp.Expiry = exp.Expiry.Unix()
}
app.storage.loadEmails()
app.storage.loadDiscordUsers()
app.storage.loadMatrixUsers()
app.storage.loadTelegramUsers()
if emailEnabled {
resp.Email = &MyDetailsContactMethodsDTO{}
if email, ok := app.storage.GetEmailsKey(user.ID); ok && email.Addr != "" {