I’m using Jami with Linux and android phone, lately I seem to get the same issue, If I send a message to a contact from Linux, it appears on the phone. The conversation bubbles will always appear above the sync’d phone messages.
Also the reverse when starting a conversation on the phone and moving to the laptop - the phones messages will always be at the bottom of the list.