Upgrade to libsignal 0.58.0

This commit is contained in:
Alex Konradi
2024-09-19 14:32:17 -04:00
committed by GitHub
parent 90970921b5
commit 14ca19e632
2 changed files with 38 additions and 22 deletions

View File

@@ -51,6 +51,8 @@ export const UNAUTHENTICATED_CHANNEL_NAME = 'unauthenticated';
export const AUTHENTICATED_CHANNEL_NAME = 'authenticated';
export const NORMAL_DISCONNECT_CODE = 3000;
export type SocketManagerOptions = Readonly<{
url: string;
certificateAuthority: string;
@@ -309,7 +311,7 @@ export class SocketManager extends EventListener {
);
this.dropAuthenticated(process);
if (code === 3000) {
if (code === NORMAL_DISCONNECT_CODE) {
// Intentional disconnect
return;
}