Suppose you had a friend who you knew was/had told you they you they were going through a bit of a hard time. You want to help them, so you give them advice etc., but you might not be physically able to meet up with them due to distance/commitments etc.
Is saying 'chin up' appropriate? Is it the kind of phrase that a friend would say/ write to you?