I researched Turkey quite a bit recently.
Largely speaking, the Crimean naval base that this all has been about originally appeared to be largely due to Russia against Turkey.
In Syria and Libya, they aren't on the same side of the conflict.
Many years ago Turkey shot down a Russian fighter jet. Putin said Turkey stabbed them in the back over this one. Month later Erdogan had a coupdtat which he survived. Russian ambassador got assassinated. They eventually had a peace summit and Russia lifted sanctions. They both backed Maduro in venezuela. They tried to repair relations.
But more important, over the next 5 years. practically every economic problem was blamed on the russians. In my own personal analysis, they were completely founded. For whatever reason Russia was doing this I don't know. Mind you, Russia is surrounding Turkey with lots of military. But Turkey is NATO. But for the most part turkey has been trying to improve relations with russia.
This change in demeaner by Turkey will be a strong message.