Revert to previous method of rendering calling notifications

This commit is contained in:
Jamie Kyle 2023-08-21 10:09:54 -07:00 committed by GitHub
parent 3beea78aff
commit 7c16b16ee0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 131 additions and 84 deletions

View file

@ -2,10 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { assert } from 'chai';
import {
CallExternalState,
getCallingNotificationText,
} from '../../util/callingNotification';
import { getCallingNotificationText } from '../../util/callingNotification';
import { CallMode } from '../../types/Calling';
import { setupI18n } from '../../util/setupI18n';
import enMessages from '../../../_locales/en/messages.json';
@ -42,7 +39,8 @@ describe('calling notification helpers', () => {
status: GroupCallStatus.Missed,
},
callCreator,
callExternalState: CallExternalState.Ended,
activeConversationId: null,
groupCallEnded: true,
deviceCount: 1,
maxDevices: 23,
},
@ -70,7 +68,8 @@ describe('calling notification helpers', () => {
status: GroupCallStatus.Ringing,
},
callCreator,
callExternalState: CallExternalState.Active,
activeConversationId: null,
groupCallEnded: false,
deviceCount: 1,
maxDevices: 23,
},
@ -99,7 +98,8 @@ describe('calling notification helpers', () => {
status: GroupCallStatus.Ringing,
},
callCreator,
callExternalState: CallExternalState.Active,
activeConversationId: null,
groupCallEnded: false,
deviceCount: 1,
maxDevices: 23,
},
@ -127,7 +127,8 @@ describe('calling notification helpers', () => {
status: GroupCallStatus.Ringing,
},
callCreator,
callExternalState: CallExternalState.Active,
activeConversationId: null,
groupCallEnded: false,
deviceCount: 1,
maxDevices: 23,
},
@ -152,7 +153,8 @@ describe('calling notification helpers', () => {
status: GroupCallStatus.Ringing,
},
callCreator: null,
callExternalState: CallExternalState.Active,
activeConversationId: null,
groupCallEnded: false,
deviceCount: 1,
maxDevices: 23,
},