-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to support transfer #247
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,25 +55,37 @@ export default class IncomingCallCard extends React.Component { | |
<div className="ms-Grid-row text-center"> | ||
<span className="incoming-call-button" | ||
title={'Answer call with microphone unmuted and video off'} | ||
onClick={async () => this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOff())}> | ||
onClick={async () => { | ||
this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOff()); | ||
this.props.onReject(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the reject here is a hack, we shall fix it properly by cleaning up old call/state and adding the new one |
||
}}> | ||
<Icon iconName="Microphone"/> | ||
<Icon iconName="VideoOff"/> | ||
</span> | ||
<span className="incoming-call-button" | ||
title={'Answer call with microphone unmuted and video on'} | ||
onClick={async () => this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOn())}> | ||
onClick={async () => { | ||
this.incomingCall.accept(await this.acceptCallMicrophoneUnmutedVideoOn()); | ||
this.props.onReject(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
}}> | ||
<Icon iconName="Microphone"/> | ||
<Icon iconName="Video"/> | ||
</span> | ||
<span className="incoming-call-button" | ||
title={'Answer call with microphone muted and video on'} | ||
onClick={async () => this.incomingCall.accept(await this.acceptCallMicrophoneMutedVideoOn())}> | ||
onClick={async () => { | ||
this.incomingCall.accept(await this.acceptCallMicrophoneMutedVideoOn()); | ||
this.props.onReject(); | ||
}}> | ||
<Icon iconName="MicOff"/> | ||
<Icon iconName="Video"/> | ||
</span> | ||
<span className="incoming-call-button" | ||
title={'Answer call with microphone muted and video off'} | ||
onClick={async () => this.incomingCall.accept(await this.acceptCallMicrophoneMutedVideoOff())}> | ||
onClick={async () => { | ||
this.incomingCall.accept(await this.acceptCallMicrophoneMutedVideoOff()); | ||
this.props.onReject(); | ||
}}> | ||
<Icon iconName="MicOff"/> | ||
<Icon iconName="VideoOff"/> | ||
</span> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we calling onReject here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took this part from another PR that had some initial scaffolding, I'm not sure why. It seems to work as intended. Will ask original author