Remove call back/again buttons on pending call

This commit is contained in:
Jamie Kyle 2023-11-28 07:05:52 -08:00 committed by GitHub
parent 88f004ac81
commit 4fc46c40d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,9 @@ function renderCallingNotificationButton(
switch (props.callHistory.mode) {
case CallMode.Direct: {
const { direction, type } = props.callHistory;
if (props.callHistory.status === DirectCallStatus.Pending) {
return null;
}
buttonText =
direction === CallDirection.Incoming
? i18n('icu:calling__call-back')