mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 19:34:04 +01:00
Use base64 strings for incoming message cache instead of binary
This commit is contained in:
@@ -86,6 +86,11 @@ async function migrateToSQL({
|
||||
forEach(array, item => {
|
||||
// In the new database, we can't store ArrayBuffers, so we turn these two fields
|
||||
// into strings like MessageReceiver now does before save.
|
||||
|
||||
// Need to set it to version two, since we're using Base64 strings now
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
item.version = 2;
|
||||
|
||||
if (item.envelope) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
item.envelope = arrayBufferToString(item.envelope);
|
||||
|
||||
Reference in New Issue
Block a user