Use of ていれば + だった


『公園では偶然にも彼と会った。少し焦ったけれど、自然に話していれば別に全然平気だった』

What is the specific use of ていれば in this? He's describing how at the park he
meet a friend. He was a bit nervous on what he should talk/how he should act
with him.

Is it an "after" conditional? After I did x?




"as far as talking naturally, there were no problems"

