Support for web socket communication with no signaling key
This commit is contained in:
parent
00755072ee
commit
43e5d16020
7 changed files with 66 additions and 25 deletions
|
@ -681,7 +681,19 @@
|
|||
textsecure.storage.user.getDeviceId() != '1'
|
||||
) {
|
||||
window.getSyncRequest();
|
||||
window.getAccountManager().maybeUpdateDeviceName();
|
||||
|
||||
try {
|
||||
const manager = window.getAccountManager();
|
||||
await Promise.all([
|
||||
manager.maybeUpdateDeviceName(),
|
||||
manager.maybeDeleteSignalingKey(),
|
||||
]);
|
||||
} catch (e) {
|
||||
window.log.error(
|
||||
'Problem with account manager updates after starting new version: ',
|
||||
e && e.stack ? e.stack : e
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const udSupportKey = 'hasRegisterSupportForUnauthenticatedDelivery';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue