mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Migrate sessions table to BLOB column
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
@@ -74,6 +74,10 @@ export function getTableData(db: ReadableDB, table: string): TableRows {
|
||||
if (value == null) {
|
||||
continue;
|
||||
}
|
||||
if (Buffer.isBuffer(value)) {
|
||||
result[key] = value.toString('hex');
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
if (typeof value !== 'string') {
|
||||
throw new Error('skip');
|
||||
|
||||
Reference in New Issue
Block a user