The democracy advocates were prosecuted under the 2020 national security law for their roles in an unofficial primary election.