You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1263,6 +1263,7 @@ open class Storage @Inject constructor(
1263
1263
// which in the case of contacts we are messaging for the first time and who haven't yet approved us, it won't be the case
1264
1264
// But that person is saved in the Recipient db. We might need to investigate how to clean the relationship between Recipients, Contacts and config Contacts.
1265
1265
val removedContacts = recipientDatabase.allRecipients.filter { localContact ->
1266
+
AccountId(localContact.address.toString()).prefix ==IdPrefix.STANDARD&&// only want standard address
1266
1267
localContact.is1on1 &&// only for conversations
1267
1268
localContact.address.toString() != currentUserKey &&// we don't want to remove ourselves (ie, our Note to Self)
1268
1269
moreContacts.none { it.id == localContact.address.toString() } // we don't want to remove contacts that are present in the config
0 commit comments