mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-06 21:35:46 +01:00
Improve handling of unlinked device during send.
This commit is contained in:
+5
@@ -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();
|
||||
|
||||
+4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user