Remove last use of Buffer in ringrtc API

Co-authored-by: Jim Gustafson <jim@signal.org>
This commit is contained in:
Miriam Zimmerman 2025-10-01 16:57:39 -04:00 committed by GitHub
commit dd1b7e6fc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 27 additions and 40 deletions

View file

@ -44,7 +44,7 @@ describe('callingMessageToProto', () => {
it('attaches opaque data', () => {
const callingMessage = new CallingMessage();
callingMessage.opaque = new OpaqueMessage();
callingMessage.opaque.data = Buffer.from([1, 2, 3]);
callingMessage.opaque.data = new Uint8Array([1, 2, 3]);
const result = callingMessageToProto(callingMessage);
@ -74,7 +74,7 @@ describe('callingMessageToProto', () => {
it('attaches urgency and opaque data if both are provided', () => {
const callingMessage = new CallingMessage();
callingMessage.opaque = new OpaqueMessage();
callingMessage.opaque.data = Buffer.from([1, 2, 3]);
callingMessage.opaque.data = new Uint8Array([1, 2, 3]);
const result = callingMessageToProto(
callingMessage,