fix: update user's info will modify user create time when modify user's nickname or avatar. (#1446)

pull/1478/head
Gordon 1 year ago committed by GitHub
parent 403cfb6055
commit e4046994cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,8 +15,6 @@
package convert package convert
import ( import (
"time"
"github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/protocol/sdkws"
relationtb "github.com/openimsdk/open-im-server/v3/pkg/common/db/table/relation" relationtb "github.com/openimsdk/open-im-server/v3/pkg/common/db/table/relation"
@ -43,7 +41,6 @@ func UserPb2DB(user *sdkws.UserInfo) *relationtb.UserModel {
userDB.Nickname = user.Nickname userDB.Nickname = user.Nickname
userDB.FaceURL = user.FaceURL userDB.FaceURL = user.FaceURL
userDB.Ex = user.Ex userDB.Ex = user.Ex
userDB.CreateTime = time.UnixMilli(user.CreateTime)
userDB.AppMangerLevel = user.AppMangerLevel userDB.AppMangerLevel = user.AppMangerLevel
userDB.GlobalRecvMsgOpt = user.GlobalRecvMsgOpt userDB.GlobalRecvMsgOpt = user.GlobalRecvMsgOpt
return &userDB return &userDB

Loading…
Cancel
Save