Fixed missing permission check in chat listener.