Understanding what 逆に means in context with an emotion


I'm having trouble understanding exactly what this person is saying to me. The
context being that I was asked a question by them, and after responding they
said this:

> そうでしたか！それを聞けて逆に安心しました…！笑

I believe: そうでしたか！ = Was that so!? And maybe: それを聞けて = Able to hear that and
...

But: 逆に安心しました = was oppositely relieved (?) Does this mean they became
relieved, and were worried before (the opposite of relieved), or something
else?




It means "(I probably shouldn't have heard that) but when I could hear that, I
was rather relieved ."

逆に in this sentence means "on the contrary", "rather". For example,
失敗して逆に良かった(I failed, but on the contrary it was good).




It means "(I probably shouldn't have heard that) but when I could hear that, I
was rather relieved ."

逆に in this sentence means "on the contrary", "rather". For example,
失敗して逆に良かった(I failed, but on the contrary it was good).

