|
|
@ -109,14 +109,11 @@ type groupServer struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (s *groupServer) NotificationUserInfoUpdate(ctx context.Context, req *pbgroup.NotificationUserInfoUpdateReq) (*pbgroup.NotificationUserInfoUpdateResp, error) {
|
|
|
|
func (s *groupServer) NotificationUserInfoUpdate(ctx context.Context, req *pbgroup.NotificationUserInfoUpdateReq) (*pbgroup.NotificationUserInfoUpdateResp, error) {
|
|
|
|
defer log.ZDebug(ctx, "return")
|
|
|
|
defer log.ZDebug(ctx, "NotificationUserInfoUpdate return")
|
|
|
|
members, err := s.db.FindGroupMemberUser(ctx, nil, req.UserID)
|
|
|
|
members, err := s.db.FindGroupMemberUser(ctx, nil, req.UserID)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if err := s.PopulateGroupMember(ctx, members...); err != nil {
|
|
|
|
|
|
|
|
return nil, err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
groupIDs := make([]string, 0, len(members))
|
|
|
|
groupIDs := make([]string, 0, len(members))
|
|
|
|
for _, member := range members {
|
|
|
|
for _, member := range members {
|
|
|
|
if member.Nickname != "" && member.FaceURL != "" {
|
|
|
|
if member.Nickname != "" && member.FaceURL != "" {
|
|
|
|