mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Add the ability to have separate ACI and PNI protocol stores.
This commit is contained in:
committed by
Cody Henthorne
parent
dd7a2834bc
commit
33f4bb0000
@@ -186,7 +186,7 @@ public class IdentityDatabase extends Database {
|
||||
EventBus.getDefault().post(record.get());
|
||||
}
|
||||
|
||||
ApplicationDependencies.getIdentityStore().invalidate(addressName);
|
||||
ApplicationDependencies.getProtocolStore().aci().identities().invalidate(addressName);
|
||||
}
|
||||
|
||||
if (hadEntry && !keyMatches) {
|
||||
|
||||
@@ -789,7 +789,7 @@ open class RecipientDatabase(context: Context, databaseHelper: SignalDatabase) :
|
||||
|
||||
fun applyStorageSyncContactUpdate(update: StorageRecordUpdate<SignalContactRecord>) {
|
||||
val db = writableDatabase
|
||||
val identityStore = ApplicationDependencies.getIdentityStore()
|
||||
val identityStore = ApplicationDependencies.getProtocolStore().aci().identities()
|
||||
val values = getValuesForStorageContact(update.new, false)
|
||||
|
||||
try {
|
||||
@@ -2525,7 +2525,7 @@ open class RecipientDatabase(context: Context, databaseHelper: SignalDatabase) :
|
||||
val e164Record = getRecord(byE164)
|
||||
|
||||
// Identities
|
||||
ApplicationDependencies.getIdentityStore().delete(e164Record.e164!!)
|
||||
ApplicationDependencies.getProtocolStore().aci().identities().delete(e164Record.e164!!)
|
||||
|
||||
// Group Receipts
|
||||
val groupReceiptValues = ContentValues()
|
||||
|
||||
Reference in New Issue
Block a user