Uint8Array migration

This commit is contained in:
Fedor Indutny 2021-09-23 17:49:05 -07:00 committed by GitHub
parent daf75190b8
commit 4ef0bf96cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
137 changed files with 2202 additions and 3170 deletions

View file

@ -6,9 +6,6 @@ import { SignalService as Proto } from '../protobuf';
import * as log from '../logging/log';
import { missingCaseError } from './missingCaseError';
// TODO: remove once we move away from ArrayBuffers
const FIXMEU8 = Uint8Array;
export function callingMessageToProto(
{
offer,
@ -88,7 +85,7 @@ function bufferToProto(
return value;
}
return new FIXMEU8(value.toArrayBuffer());
return new Uint8Array(value.toArrayBuffer());
}
function urgencyToProto(