WebSocket API for CDS

This commit is contained in:
Fedor Indutny 2021-11-09 00:32:31 +01:00 committed by GitHub
parent 4cb1ea9e5d
commit 409bf1fc82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 436 additions and 109 deletions

View file

@ -23,6 +23,7 @@ import { SenderKeys } from '../LibSignalStores';
import type { LinkPreviewType } from '../types/message/LinkPreviews';
import { MIMETypeToString } from '../types/MIME';
import type * as Attachment from '../types/Attachment';
import type { UUIDStringType } from '../types/UUID';
import type {
ChallengeType,
GroupCredentialsType,
@ -2058,10 +2059,16 @@ export default class MessageSender {
async getUuidsForE164s(
numbers: ReadonlyArray<string>
): Promise<Dictionary<string | null>> {
): Promise<Dictionary<UUIDStringType | null>> {
return this.server.getUuidsForE164s(numbers);
}
async getUuidsForE164sV2(
numbers: ReadonlyArray<string>
): Promise<Dictionary<UUIDStringType | null>> {
return this.server.getUuidsForE164sV2(numbers);
}
async getAvatar(path: string): Promise<ReturnType<WebAPIType['getAvatar']>> {
return this.server.getAvatar(path);
}