From 0690d778fb0411d2131c55b056bac5cefb597e7f Mon Sep 17 00:00:00 2001 From: qmarliu Date: Mon, 21 Oct 2024 16:30:21 +0700 Subject: [PATCH] Update update.go fix: when update email will make the account empty --- internal/rpc/chat/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/chat/update.go b/internal/rpc/chat/update.go index 8f69de2f2..13b9b57f1 100644 --- a/internal/rpc/chat/update.go +++ b/internal/rpc/chat/update.go @@ -99,7 +99,7 @@ func ToDBCredentialUpdate(req *chat.UpdateUserInfoReq, allowChange bool) ([]*cha } else { update = append(update, &chatdb.Credential{ UserID: req.UserID, - Account: req.Account.GetValue(), + Account: req.Email.GetValue(), Type: constant.CredentialEmail, AllowChange: allowChange, })