|
|
@ -200,9 +200,7 @@ func (s *groupServer) CreateGroup(ctx context.Context, req *pbGroup.CreateGroupR
|
|
|
|
if req.GroupInfo.GroupType != constant.SuperGroup {
|
|
|
|
if req.GroupInfo.GroupType != constant.SuperGroup {
|
|
|
|
chat.GroupCreatedNotification(req.OperationID, req.OpUserID, groupId, okUserIDList)
|
|
|
|
chat.GroupCreatedNotification(req.OperationID, req.OpUserID, groupId, okUserIDList)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
for _, userID := range okUserIDList {
|
|
|
|
chat.SuperGroupNotification(req.OperationID, req.OpUserID, groupId)
|
|
|
|
chat.SuperGroupNotification(req.OperationID, req.OpUserID, userID)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return resp, nil
|
|
|
|
return resp, nil
|
|
|
@ -385,9 +383,7 @@ func (s *groupServer) InviteUserToGroup(ctx context.Context, req *pbGroup.Invite
|
|
|
|
if groupInfo.GroupType != constant.SuperGroup {
|
|
|
|
if groupInfo.GroupType != constant.SuperGroup {
|
|
|
|
chat.MemberInvitedNotification(req.OperationID, req.GroupID, req.OpUserID, req.Reason, okUserIDList)
|
|
|
|
chat.MemberInvitedNotification(req.OperationID, req.GroupID, req.OpUserID, req.Reason, okUserIDList)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
for _, userID := range okUserIDList {
|
|
|
|
chat.SuperGroupNotification(req.OperationID, req.OpUserID, req.GroupID)
|
|
|
|
chat.SuperGroupNotification(req.OperationID, req.OpUserID, userID)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
log.NewInfo(req.OperationID, "InviteUserToGroup rpc return ")
|
|
|
|
log.NewInfo(req.OperationID, "InviteUserToGroup rpc return ")
|
|
|
@ -589,9 +585,7 @@ func (s *groupServer) KickGroupMember(ctx context.Context, req *pbGroup.KickGrou
|
|
|
|
if groupInfo.GroupType != constant.SuperGroup {
|
|
|
|
if groupInfo.GroupType != constant.SuperGroup {
|
|
|
|
chat.MemberKickedNotification(req, okUserIDList)
|
|
|
|
chat.MemberKickedNotification(req, okUserIDList)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
for _, userID := range okUserIDList {
|
|
|
|
chat.SuperGroupNotification(req.OperationID, req.OpUserID, req.GroupID)
|
|
|
|
chat.SuperGroupNotification(req.OperationID, req.OpUserID, userID)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
log.NewInfo(req.OperationID, "GetGroupMemberList rpc return ", resp.String())
|
|
|
|
log.NewInfo(req.OperationID, "GetGroupMemberList rpc return ", resp.String())
|
|
|
|
return &resp, nil
|
|
|
|
return &resp, nil
|
|
|
|