Remove redundant incoming call bar code
This commit is contained in:
parent
25dd060a4d
commit
f3e07e5376
1 changed files with 16 additions and 26 deletions
|
@ -255,16 +255,16 @@ export const IncomingCallBar = (props: PropsType): JSX.Element | null => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="IncomingCallBar__actions">
|
<div className="IncomingCallBar__actions">
|
||||||
|
<CallButton
|
||||||
|
classSuffix="decline"
|
||||||
|
onClick={() => {
|
||||||
|
declineCall({ conversationId });
|
||||||
|
}}
|
||||||
|
tabIndex={0}
|
||||||
|
tooltipContent={i18n('declineCall')}
|
||||||
|
/>
|
||||||
{isVideoCall ? (
|
{isVideoCall ? (
|
||||||
<>
|
<>
|
||||||
<CallButton
|
|
||||||
classSuffix="decline"
|
|
||||||
onClick={() => {
|
|
||||||
declineCall({ conversationId });
|
|
||||||
}}
|
|
||||||
tabIndex={0}
|
|
||||||
tooltipContent={i18n('declineCall')}
|
|
||||||
/>
|
|
||||||
<CallButton
|
<CallButton
|
||||||
classSuffix="accept-video-as-audio"
|
classSuffix="accept-video-as-audio"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
@ -283,24 +283,14 @@ export const IncomingCallBar = (props: PropsType): JSX.Element | null => {
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<CallButton
|
||||||
<CallButton
|
classSuffix="accept-audio"
|
||||||
classSuffix="decline"
|
onClick={() => {
|
||||||
onClick={() => {
|
acceptCall({ conversationId, asVideoCall: false });
|
||||||
declineCall({ conversationId });
|
}}
|
||||||
}}
|
tabIndex={0}
|
||||||
tabIndex={0}
|
tooltipContent={i18n('acceptCall')}
|
||||||
tooltipContent={i18n('declineCall')}
|
/>
|
||||||
/>
|
|
||||||
<CallButton
|
|
||||||
classSuffix="accept-audio"
|
|
||||||
onClick={() => {
|
|
||||||
acceptCall({ conversationId, asVideoCall: false });
|
|
||||||
}}
|
|
||||||
tabIndex={0}
|
|
||||||
tooltipContent={i18n('acceptCall')}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue