mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +01:00
Check that there's only one local client versions message.
This commit is contained in:
@@ -262,6 +262,7 @@ class ClientVersioningManagerImpl implements ClientVersioningManager, Client,
|
|||||||
storeClientVersions(txn, newVersions);
|
storeClientVersions(txn, newVersions);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (ids.size() != 1) throw new DbException();
|
||||||
MessageId m = ids.iterator().next();
|
MessageId m = ids.iterator().next();
|
||||||
List<ClientVersion> oldVersions = loadClientVersions(txn, m);
|
List<ClientVersion> oldVersions = loadClientVersions(txn, m);
|
||||||
if (oldVersions.equals(newVersions)) return false;
|
if (oldVersions.equals(newVersions)) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user