[link device] duplicate contacts with wrong dates in the smartlist
[Bug report | Feature request | Question | Refactoring | Test | Design]
- 
Platform: all of them
 - 
Jami version: Astarte 202405300421
 - 
Distribution channel : Jami.net Beta
 - 
Account-related devices: multiple
 - 
Can you reproduce the bug: at will
 
Steps to reproduce (STR):
- I'm logged in and online on Jami on an iPhone 14 (iOS 17.5.1), and I want to link a new device (macOS) to my public Jami account
 - On iPhone, I go to account settings and tap on Link another device and a PIN appears
 - On Ubuntu, I open Jami and select I already have an account then Import from another device
 - I enter the PIN and log into my account on desktop.
 
- Actual result: Some of my contacts/conversations appear twice in the smartlist with the same erroneous date 
31/12/1969when I scroll to the bottom of my contact list. - Expected result: Jami should only display one 1:1 conversation per contact and check if there are no duplicates. The date should be up-to-date.
 
Additional info
When I click on these conversations, the chats are empty. If I try to send a message, it let me send it, but nothing appears in the chat.
Relevant logs, screenshots or video :
Top of chat:
Bottom of the chat:
Unable to send messages in duplicate chats:

