You have made a few simplifying assumptions. One, that the pmf of picking an number is uniform, and two, that the two choices are independent.
WLOG the first person is male (ease of pronoun usage)
Neither of these are particularly odd assumptions.
Therefore. You have a 1/10 chance of winning. He has a 1/10 chance of winning.
The probability of you BOTH winning is 1/100.
The probability of you winning GIVEN that he won is 1/10.
This is because P(A|B) = P(AB)/P(B) => 1/10 = (1/10 x 1/10)/(1/10), which is in fact a consequence of independence.
To explain: Conditional probability is special. Unlike the intersection, you have to correct for all the stuff that you know wasn't possible (i.e., guy 1 choosing the wrong number). In this case, that exactly compensates for the low probability of the intersection.
EDIT: Asterisks for times and italics don't mix
I'm assuming that you and/or the GP are assuming that everyone can win and everyone's ticket has a random digit drawn separately. However, if we assume that you know what number you picked, you don't know the result of the lottery, you know that the person in front of you won, and he chose his digit uniformly at random, the probability is still 1/10, because it has already been decided that he and the lottery chose the same digit.
The guy in front of you has a 1/10 chance of hitting the winner. You ALSO have a 1/10 chance of hitting the winner.
The likelihood of you BOTH hitting the winner in a row is 1/10*1/10 = 1/100.
So, yes, the person in front of you winning DOES decrease your chances of winning. You could also think about it like this: