mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
0d4cb05ac06a0c6a6c7305185f5a5141bf4417da
When doing reloads of list items such as when adding test contacts, we loaded different versions of those items and added them to the list. According to the documentation https://developer.android.com/reference/android/support/v7/util/SortedList.html#add > If the sorting criteria of the item is changed, > SortedList won't be able to find its duplicate in the list > which will result in having a duplicate of the Item in the list. For the contact list at least, new contacts caused reloads of the entire list and new messages caused the contacts to be sorted differently. Thus we ended up with duplicate contacts in the list. This commit fixes this by replacing the contacts in the list instead of adding them. It applies the same fix to forums and private groups which use the same logic and are thus also affected. Fixes #1210
Briar is a messaging app designed for activists, journalists, and anyone else who needs a safe, easy and robust way to communicate. Unlike traditional messaging tools such as email, Twitter or Telegram, Briar doesn't rely on a central server - messages are synchronized directly between the users' devices. If the Internet's down, Briar can sync via Bluetooth or Wi-Fi, keeping the information flowing in a crisis. If the Internet's up, Briar can sync via the Tor network, protecting users and their relationships from surveillance.
Description
Languages
Java
97.9%
Kotlin
1.9%