Drop support for signaling key
This commit is contained in:
parent
31989a7706
commit
886e8966ff
9 changed files with 5 additions and 85 deletions
|
@ -2050,10 +2050,6 @@ export async function startApp(): Promise<void> {
|
|||
const OLD_USERNAME = window.storage.get('number_id', '');
|
||||
const USERNAME = window.storage.get('uuid_id', '');
|
||||
const PASSWORD = window.storage.get('password', '');
|
||||
const mySignalingKey = window.storage.get(
|
||||
'signaling_key',
|
||||
new ArrayBuffer(0)
|
||||
);
|
||||
|
||||
window.textsecure.messaging = new window.textsecure.MessageSender(
|
||||
USERNAME || OLD_USERNAME,
|
||||
|
@ -2113,7 +2109,6 @@ export async function startApp(): Promise<void> {
|
|||
OLD_USERNAME,
|
||||
USERNAME,
|
||||
PASSWORD,
|
||||
mySignalingKey,
|
||||
messageReceiverOptions
|
||||
);
|
||||
window.textsecure.messageReceiver = messageReceiver;
|
||||
|
@ -2257,7 +2252,7 @@ export async function startApp(): Promise<void> {
|
|||
const manager = window.getAccountManager()!;
|
||||
await Promise.all([
|
||||
manager.maybeUpdateDeviceName(),
|
||||
manager.maybeDeleteSignalingKey(),
|
||||
window.textsecure.storage.user.removeSignalingKey(),
|
||||
]);
|
||||
} catch (e) {
|
||||
window.log.error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue