badge implementation for near chat.