You did not infringe.
According to my country’s Trademark Law, the original right to use a trademark can only be obtained through trademark registration. When applying for trademark registration, the first-to-file principle is adopted, that is, for an unregistered trademark, whoever applies first Upon registration, the exclusive right to the trademark is granted to whomever. Therefore, no matter how long a company uses a trademark, if it does not register the trademark, as long as someone else applies for registration of the trademark, the exclusive right to use the trademark will be granted to others.