NotificationUserInfoUpdate

This commit is contained in:
withchao 2023-08-30 11:43:49 +08:00
parent eab395bfa9
commit dfe4cb83b4
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ func (s *groupServer) NotificationUserInfoUpdate(ctx context.Context, req *pbgro
return nil, err
}
for _, member := range members {
if member.Nickname != "" {
if member.Nickname != "" && member.FaceURL != "" {
continue
}
if err := s.Notification.GroupMemberInfoSetNotification(ctx, member.GroupID, member.UserID); err != nil {

View File

@ -128,7 +128,7 @@ func (s *userServer) UpdateUserInfo(ctx context.Context, req *pbuser.UpdateUserI
if err != nil {
return nil, err
}
if req.UserInfo.Nickname != "" {
if req.UserInfo.Nickname != "" || req.UserInfo.FaceURL != "" {
if err := s.groupRpcClient.NotificationUserInfoUpdate(ctx, req.UserInfo.UserID); err != nil {
log.ZError(ctx, "NotificationUserInfoUpdate", err)
}