Improve handling of unlinked device during send.

This commit is contained in:
Greyson Parrelli
2026-06-15 19:35:19 -04:00
parent 5e8cebdc87
commit 8c2ff2f1c2
7 changed files with 97 additions and 11 deletions
@@ -58,6 +58,11 @@ public class SignalServiceAccountDataStoreImpl implements SignalServiceAccountDa
return SignalStore.account().isMultiDevice();
}
@Override
public void setMultiDevice(boolean isMultiDevice) {
SignalStore.account().setMultiDevice(isMultiDevice);
}
@Override
public IdentityKeyPair getIdentityKeyPair() {
return identityKeyStore.getIdentityKeyPair();
@@ -201,6 +201,10 @@ class BufferedSignalServiceAccountDataStore(selfServiceId: ServiceId) : SignalSe
error("Should not happen during the intended usage pattern of this class")
}
override fun setMultiDevice(isMultiDevice: Boolean) {
error("Should not happen during the intended usage pattern of this class")
}
fun flushToDisk(persistentStore: SignalServiceAccountDataStore) {
SignalDatabase.writableDatabase.withinTransaction {
identityStore.flushToDisk(persistentStore)