Implemented logic to show messages related to friend connection