Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
eb5b81d2
Unverified
Commit
eb5b81d2
authored
2 years ago
by
Kevin Aleman
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Regression: Add better error messages when call fails (#26134)
parent
43e6b7e9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/meteor/client/providers/CallProvider/CallProvider.tsx
+11
-2
11 additions, 2 deletions
apps/meteor/client/providers/CallProvider/CallProvider.tsx
apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json
+2
-0
2 additions, 0 deletions
apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json
with
13 additions
and
2 deletions
apps/meteor/client/providers/CallProvider/CallProvider.tsx
+
11
−
2
View file @
eb5b81d2
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
apps/meteor/packages/rocketchat-i18n/i18n/en.i18n.json
+
2
−
0
View file @
eb5b81d2
...
@@ -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"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment