It offers the compensation as all woes vanish in recollection of the "dear friend." The narrator talks as if the joy of the dear friend wipes out all the pain of remembrance.
It provides recompense as all sorrows are forgotten upon recollection of the "beloved companion." The speaker speaks as if the happiness of the beloved erases all the anguish of memory.