Update the visited time in archive view if the chat is ended.

We need to do this because otherwise it's impossible to mark an ended chat as read.