mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
push msg specify receiver
This commit is contained in:
parent
ac09da9efc
commit
e157bc195b
@ -29,6 +29,9 @@ func FriendDBCopyOpenIM(dst *open_im_sdk.FriendInfo, src *db.Friend) error {
|
||||
}
|
||||
utils.CopyStructFields(dst.FriendUser, user)
|
||||
dst.CreateTime = uint32(src.CreateTime.Unix())
|
||||
if dst.FriendUser == nil {
|
||||
dst.FriendUser = &open_im_sdk.UserInfo{}
|
||||
}
|
||||
dst.FriendUser.CreateTime = uint32(user.CreateTime.Unix())
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user