Making chat work better with link detection