+ );
}
let reason;
@@ -133,8 +163,6 @@ export default class CallEvent extends React.Component {
// (as opposed to an error code they gave but we don't know about,
// in which case we show the error code)
reason = _t("An unknown error occurred");
- } else if (hangupReason === CallErrorCode.InviteTimeout) {
- reason = _t("No answer");
} else if (hangupReason === CallErrorCode.UserBusy) {
reason = _t("The user you called is busy.");
} else {
@@ -163,13 +191,7 @@ export default class CallEvent extends React.Component {
return (
);
}
@@ -186,11 +208,17 @@ export default class CallEvent extends React.Component {
const sender = event.sender ? event.sender.name : event.getSender();
const isVoice = this.props.callEventGrouper.isVoice;
const callType = isVoice ? _t("Voice call") : _t("Video call");
- const content = this.renderContent(this.state.callState);
+ const callState = this.state.callState;
+ const hangupReason = this.props.callEventGrouper.hangupReason;
+ const content = this.renderContent(callState);
const className = classNames({
mx_CallEvent: true,
mx_CallEvent_voice: isVoice,
mx_CallEvent_video: !isVoice,
+ mx_CallEvent_missed: (
+ callState === CustomCallState.Missed ||
+ (callState === CallState.Ended && hangupReason === CallErrorCode.InviteTimeout)
+ ),
});
return (
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index b36910b41bc..102a481f520 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -35,11 +35,8 @@
"Unable to load! Check your network connectivity and try again.": "Unable to load! Check your network connectivity and try again.",
"Dismiss": "Dismiss",
"Call Failed": "Call Failed",
- "Call Declined": "Call Declined",
- "The other party declined the call.": "The other party declined the call.",
"User Busy": "User Busy",
"The user you called is busy.": "The user you called is busy.",
- "The remote side failed to pick up": "The remote side failed to pick up",
"The call could not be established": "The call could not be established",
"Answered Elsewhere": "Answered Elsewhere",
"The call was answered on another device.": "The call was answered on another device.",
@@ -1862,16 +1859,19 @@
"Verification cancelled": "Verification cancelled",
"Compare emoji": "Compare emoji",
"Connected": "Connected",
+ "You declined this call": "You declined this call",
+ "They declined this call": "They declined this call",
+ "Call back": "Call back",
+ "Call again": "Call again",
"This call has ended": "This call has ended",
+ "They didn't pick up": "They didn't pick up",
"Could not connect media": "Could not connect media",
"Connection failed": "Connection failed",
"Their device couldn't start the camera or microphone": "Their device couldn't start the camera or microphone",
"An unknown error occurred": "An unknown error occurred",
- "No answer": "No answer",
"Unknown failure: %(reason)s)": "Unknown failure: %(reason)s)",
"This call has failed": "This call has failed",
"You missed this call": "You missed this call",
- "Call back": "Call back",
"The call is in an unknown state!": "The call is in an unknown state!",
"Sunday": "Sunday",
"Monday": "Monday",