NotificationUserInfoUpdate

pull/974/head
withchao 2 years ago
parent eab395bfa9
commit dfe4cb83b4

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

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

Loading…
Cancel
Save