When we use [if] in a context, we need to be careful how we apply the verbs because of the conditional implications.
A- I told John on the phone that I would be so thrilled if he could come to visit us this summer.
B- So did he say he would come?
A- He won’t know until after the final.
Two points in this context I want to make.
1) [that] is needed because you want to separate what you told John from what you are telling B.
2 )Because of the hypothetical condition, the past form of the aux. word should be used.