Update to RingRTC v2.26.2

This commit is contained in:
Jim Gustafson 2023-03-29 14:16:19 -07:00 committed by GitHub
parent 92baa76c09
commit 43e70720f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 79 additions and 54 deletions

View file

@ -2,6 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { assert } from 'chai';
import type { CallId } from '@signalapp/ringrtc';
import {
CallMessageUrgency,
CallingMessage,
@ -23,9 +24,10 @@ describe('callingMessageToProto', () => {
});
it('attaches the type if provided', () => {
const callId: CallId = { high: 0, low: 0, unsigned: false };
const callingMessage = new CallingMessage();
callingMessage.hangup = new HangupMessage();
callingMessage.hangup.type = HangupType.Busy;
callingMessage.hangup = new HangupMessage(callId, HangupType.Busy, 1);
const result = callingMessageToProto(callingMessage);