mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-22 09:28:14 +01:00
Replace typescript compiler with native tsgo compiler
This commit is contained in:
@@ -543,7 +543,7 @@ export async function sendToGroupViaSenderKey(
|
||||
});
|
||||
|
||||
let groupSendToken: GroupSendToken | null = null;
|
||||
let accessKeys: Buffer | null = null;
|
||||
let accessKeys: Buffer<ArrayBuffer> | null = null;
|
||||
if (groupSendEndorsementState != null) {
|
||||
groupSendToken = groupSendEndorsementState.buildToken(
|
||||
new Set(senderKeyRecipients)
|
||||
@@ -1228,7 +1228,7 @@ async function handle410Response(
|
||||
function getXorOfAccessKeys(
|
||||
devices: Array<DeviceType>,
|
||||
{ story }: { story?: boolean } = {}
|
||||
): Buffer {
|
||||
): Buffer<ArrayBuffer> {
|
||||
const uuids = getServiceIdsFromDevices(devices);
|
||||
|
||||
const result = Buffer.alloc(ACCESS_KEY_LENGTH);
|
||||
@@ -1278,11 +1278,11 @@ async function encryptForSenderKey({
|
||||
groupId,
|
||||
}: {
|
||||
contentHint: number;
|
||||
contentMessage: Uint8Array;
|
||||
contentMessage: Uint8Array<ArrayBuffer>;
|
||||
devices: Array<DeviceType>;
|
||||
distributionId: string;
|
||||
groupId?: string;
|
||||
}): Promise<Uint8Array> {
|
||||
}): Promise<Uint8Array<ArrayBuffer>> {
|
||||
const ourAci = itemStorage.user.getCheckedAci();
|
||||
const ourDeviceId = itemStorage.user.getDeviceId();
|
||||
if (!ourDeviceId) {
|
||||
|
||||
Reference in New Issue
Block a user