Use new call state icons

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-08-13 11:37:17 +02:00
parent fa204c4104
commit cda91e44e0
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D
2 changed files with 13 additions and 4 deletions

View file

@ -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;

View file

@ -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) {