From 58af7adeaa9472ca018b3aede242621273c4cbfd Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 25 Sep 2020 13:19:03 -0700 Subject: [PATCH] Update to the new gv2 capability string --- js/background.js | 8 ++++---- ts/textsecure/WebAPI.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/background.js b/js/background.js index 581f66236966..c99292b43c3c 100644 --- a/js/background.js +++ b/js/background.js @@ -1905,9 +1905,9 @@ } } - const hasRegisteredGV22Support = 'hasRegisteredGV22Support'; + const hasRegisteredGV23Support = 'hasRegisteredGV23Support'; if ( - !storage.get(hasRegisteredGV22Support) && + !storage.get(hasRegisteredGV23Support) && textsecure.storage.user.getUuid() ) { const server = WebAPI.connect({ @@ -1915,8 +1915,8 @@ password: PASSWORD, }); try { - await server.registerCapabilities({ 'gv2-2': true }); - storage.put(hasRegisteredGV22Support, true); + await server.registerCapabilities({ 'gv2-3': true }); + storage.put(hasRegisteredGV23Support, true); } catch (error) { window.log.error( 'Error: Unable to register support for GV2.', diff --git a/ts/textsecure/WebAPI.ts b/ts/textsecure/WebAPI.ts index d671f2571001..c377c33da5aa 100644 --- a/ts/textsecure/WebAPI.ts +++ b/ts/textsecure/WebAPI.ts @@ -1257,7 +1257,7 @@ export function initialize({ const { accessKey } = options; const jsonData: any = { capabilities: { - 'gv2-2': true, + 'gv2-3': true, }, fetchesMessages: true, name: deviceName ? deviceName : undefined,