Skip to content
Snippets Groups Projects
Unverified Commit eb5b81d2 authored by Kevin Aleman's avatar Kevin Aleman Committed by GitHub
Browse files

Regression: Add better error messages when call fails (#26134)

parent 43e6b7e9
No related branches found
No related tags found
No related merge requests found
...@@ -366,8 +366,17 @@ export const CallProvider: FC = ({ children }) => { ...@@ -366,8 +366,17 @@ export const CallProvider: FC = ({ children }) => {
startRingback(user); startRingback(user);
}; };
const onCallFailed = (): void => { const onCallFailed = (reason: 'Not Found' | 'Address Incomplete' | string): void => {
openDialModal({ errorMessage: t('Something_went_wrong_try_again_later') }); switch (reason) {
case 'Not Found':
openDialModal({ errorMessage: t('Dialed_number_doesnt_exist') });
break;
case 'Address Incomplete':
openDialModal({ errorMessage: t('Dialed_number_is_incomplete') });
break;
default:
openDialModal({ errorMessage: t('Something_went_wrong_try_again_later') });
}
}; };
result.voipClient.onNetworkEvent('connected', onNetworkConnected); result.voipClient.onNetworkEvent('connected', onNetworkConnected);
......
...@@ -1493,6 +1493,8 @@ ...@@ -1493,6 +1493,8 @@
"Devices": "Devices", "Devices": "Devices",
"Devices_Set": "Devices Set", "Devices_Set": "Devices Set",
"Device_settings": "Device Settings", "Device_settings": "Device Settings",
"Dialed_number_doesnt_exist": "Dialed number doesn't exist",
"Dialed_number_is_incomplete": "Dialed number is not complete",
"Different_Style_For_User_Mentions": "Different style for user mentions", "Different_Style_For_User_Mentions": "Different style for user mentions",
"Direct": "Direct", "Direct": "Direct",
"Direction": "Direction", "Direction": "Direction",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment