The head of the Metropolitan Black Police Association committed gross misconduct over a chat with a former officer in which racist, sexist and inappropriate messages were sent and received.