Update to the new gv2 capability string

This commit is contained in:
Scott Nonnenberg authored and GitHub committed 2020-09-25 15:19:03 -05:00
1 parent f2f2b20a52
commit 58af7adeaa
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -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.',
+1 -1
View File
@@ -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,