When editing content: the first selected channel becomes strong and will be the primary channel
In code of the documents there is no relationship between channels and primaryChannel, this has to be maintained by the application
The second selected get a "Make primary" link after selecting, this allows to change the primary channel
For current content without a primary channel: every selected channel gets a "Make primary" link. Until that link is clicked the primary channel stays empty.