Fixed get_msg_contact_activity function