Migrate sessions table to BLOB column
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
a4d8ba4899
commit
091580825a
8 changed files with 582 additions and 275 deletions
|
@ -206,8 +206,7 @@ export type SessionType = {
|
|||
serviceId: ServiceIdString;
|
||||
conversationId: string;
|
||||
deviceId: number;
|
||||
record: string;
|
||||
version?: number;
|
||||
record: Uint8Array;
|
||||
};
|
||||
export type SessionIdType = SessionType['id'];
|
||||
export type SignedPreKeyType = {
|
||||
|
@ -722,7 +721,6 @@ type WritableInterface = {
|
|||
sessions: Array<SessionType>;
|
||||
unprocessed: Array<UnprocessedType>;
|
||||
}): void;
|
||||
bulkAddSessions: (array: Array<SessionType>) => void;
|
||||
removeSessionById: (id: SessionIdType) => number;
|
||||
removeSessionsByConversation: (conversationId: string) => void;
|
||||
removeSessionsByServiceId: (serviceId: ServiceIdString) => void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue