Use new call state icons
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
fa204c4104
commit
cda91e44e0
2 changed files with 13 additions and 4 deletions
|
@ -80,6 +80,16 @@ limitations under the License.
|
||||||
mask-image: url('$(res)/img/voip/missed-video.svg');
|
mask-image: url('$(res)/img/voip/missed-video.svg');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.mx_CallEvent_voice.mx_CallEvent_rejected .mx_CallEvent_type_icon::before,
|
||||||
|
&.mx_CallEvent_voice.mx_CallEvent_noAnswer .mx_CallEvent_type_icon::before {
|
||||||
|
mask-image: url('$(res)/img/voip/declined-voice.svg');
|
||||||
|
}
|
||||||
|
|
||||||
|
&.mx_CallEvent_video.mx_CallEvent_rejected .mx_CallEvent_type_icon::before,
|
||||||
|
&.mx_CallEvent_video.mx_CallEvent_noAnswer .mx_CallEvent_type_icon::before {
|
||||||
|
mask-image: url('$(res)/img/voip/declined-video.svg');
|
||||||
|
}
|
||||||
|
|
||||||
.mx_CallEvent_info {
|
.mx_CallEvent_info {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
|
@ -249,10 +249,9 @@ export default class CallEvent extends React.PureComponent<IProps, IState> {
|
||||||
mx_CallEvent_voice: isVoice,
|
mx_CallEvent_voice: isVoice,
|
||||||
mx_CallEvent_video: !isVoice,
|
mx_CallEvent_video: !isVoice,
|
||||||
mx_CallEvent_narrow: this.state.narrow,
|
mx_CallEvent_narrow: this.state.narrow,
|
||||||
mx_CallEvent_missed: (
|
mx_CallEvent_missed: callState === CustomCallState.Missed,
|
||||||
callState === CustomCallState.Missed ||
|
mx_CallEvent_noAnswer: callState === CallState.Ended && hangupReason === CallErrorCode.InviteTimeout,
|
||||||
(callState === CallState.Ended && hangupReason === CallErrorCode.InviteTimeout)
|
mx_CallEvent_rejected: callState === CallState.Ended && this.props.callEventGrouper.gotRejected,
|
||||||
),
|
|
||||||
});
|
});
|
||||||
let silenceIcon;
|
let silenceIcon;
|
||||||
if (this.state.narrow && this.state.callState === CallState.Ringing) {
|
if (this.state.narrow && this.state.callState === CallState.Ringing) {
|
||||||
|
|
Loading…
Reference in a new issue