Update to the new gv2 capability string
This commit is contained in:
@@ -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.',
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user