fix: set latest_message when creating a thread