mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
sendToGroup: Move to libsignal typed API
This commit is contained in:
@@ -15,7 +15,10 @@ import EventListener from 'node:events';
|
||||
import type { IncomingMessage } from 'node:http';
|
||||
import { setTimeout as sleep } from 'node:timers/promises';
|
||||
|
||||
import type { UnauthUsernamesService } from '@signalapp/libsignal-client/dist/net';
|
||||
import type {
|
||||
UnauthMessagesService,
|
||||
UnauthUsernamesService,
|
||||
} from '@signalapp/libsignal-client/dist/net';
|
||||
|
||||
import { strictAssert } from '../util/assert.std.js';
|
||||
import { explodePromise } from '../util/explodePromise.std.js';
|
||||
@@ -431,7 +434,9 @@ export class SocketManager extends EventListener {
|
||||
}).getResult();
|
||||
}
|
||||
|
||||
public async getUnauthenticatedLibsignalApi(): Promise<UnauthUsernamesService> {
|
||||
public async getUnauthenticatedLibsignalApi(): Promise<
|
||||
UnauthUsernamesService & UnauthMessagesService
|
||||
> {
|
||||
const resource = await this.#getUnauthenticatedResource();
|
||||
return resource.libsignalWebsocket;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user