Remove redundant incoming call bar code

This commit is contained in:
Evan Hahn 2021-09-29 13:30:22 -05:00 committed by GitHub
parent 25dd060a4d
commit f3e07e5376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,8 +255,6 @@ export const IncomingCallBar = (props: PropsType): JSX.Element | null => {
</div> </div>
</div> </div>
<div className="IncomingCallBar__actions"> <div className="IncomingCallBar__actions">
{isVideoCall ? (
<>
<CallButton <CallButton
classSuffix="decline" classSuffix="decline"
onClick={() => { onClick={() => {
@ -265,6 +263,8 @@ export const IncomingCallBar = (props: PropsType): JSX.Element | null => {
tabIndex={0} tabIndex={0}
tooltipContent={i18n('declineCall')} tooltipContent={i18n('declineCall')}
/> />
{isVideoCall ? (
<>
<CallButton <CallButton
classSuffix="accept-video-as-audio" classSuffix="accept-video-as-audio"
onClick={() => { onClick={() => {
@ -283,15 +283,6 @@ export const IncomingCallBar = (props: PropsType): JSX.Element | null => {
/> />
</> </>
) : ( ) : (
<>
<CallButton
classSuffix="decline"
onClick={() => {
declineCall({ conversationId });
}}
tabIndex={0}
tooltipContent={i18n('declineCall')}
/>
<CallButton <CallButton
classSuffix="accept-audio" classSuffix="accept-audio"
onClick={() => { onClick={() => {
@ -300,7 +291,6 @@ export const IncomingCallBar = (props: PropsType): JSX.Element | null => {
tabIndex={0} tabIndex={0}
tooltipContent={i18n('acceptCall')} tooltipContent={i18n('acceptCall')}
/> />
</>
)} )}
</div> </div>
</div> </div>