To dream that you are thanking someone shows the respect you have towards that particular person. If somebody else have thanked you, it means that you are feeling appreciated by those around you.
Thank dream meaning
Read more about dreaming of Thank in other dream meanings interpretations.