Eliminate extra preKeys, fail early on key creation if no PNI identity key

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
Scott Nonnenberg 2023-08-21 13:15:10 -07:00 committed by GitHub
parent 0e19255256
commit 3339899684
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 444 additions and 6 deletions

View file

@ -65,6 +65,7 @@ import updateToSchemaVersion86 from './86-story-replies-index';
import updateToSchemaVersion88 from './88-service-ids';
import updateToSchemaVersion89 from './89-call-history';
import updateToSchemaVersion90 from './90-delete-story-reply-screenshot';
import updateToSchemaVersion91 from './91-clean-keys';
function updateToSchemaVersion1(
currentVersion: number,
@ -2001,6 +2002,8 @@ export const SCHEMA_VERSIONS = [
updateToSchemaVersion88,
updateToSchemaVersion89,
updateToSchemaVersion90,
updateToSchemaVersion91,
];
export function updateSchema(db: Database, logger: LoggerType): void {