mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 10:58:19 +01:00
Remove last use of Buffer in ringrtc API
Co-authored-by: Jim Gustafson <jim@signal.org>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user