Skip to content

[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):

  1. 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
  2. On iPhone, I go to account settings and tap on Link another device and a PIN appears
  3. On Ubuntu, I open Jami and select I already have an account then Import from another device
  4. 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/1969 when 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:

Capture_d_écran_du_2024-07-09_16-16-20

Bottom of the chat:

Capture_d_écran_du_2024-07-09_16-15-39

Unable to send messages in duplicate chats:

Capture_vidéo_du_2024-07-09_16-37-44