diff --git a/js/background.js b/js/background.js index 5cf846dec..921c0f3da 100644 --- a/js/background.js +++ b/js/background.js @@ -1905,9 +1905,9 @@ } } - const hasRegisteredGV2Support = 'hasRegisteredGV2Support'; + const hasRegisteredGV22Support = 'hasRegisteredGV22Support'; if ( - !storage.get(hasRegisteredGV2Support) && + !storage.get(hasRegisteredGV22Support) && textsecure.storage.user.getUuid() ) { const server = WebAPI.connect({ @@ -1915,8 +1915,8 @@ password: PASSWORD, }); try { - await server.registerCapabilities({ gv2: true }); - storage.put(hasRegisteredGV2Support, true); + await server.registerCapabilities({ 'gv2-2': true }); + storage.put(hasRegisteredGV22Support, 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 d836da510..d671f2571 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: true, + 'gv2-2': true, }, fetchesMessages: true, name: deviceName ? deviceName : undefined,