truncate messages at the client level