summaryrefslogtreecommitdiffstats
path: root/webapp/actions/webrtc_actions.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/actions/webrtc_actions.jsx')
-rw-r--r--webapp/actions/webrtc_actions.jsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/webapp/actions/webrtc_actions.jsx b/webapp/actions/webrtc_actions.jsx
index 65820f35c..244de289b 100644
--- a/webapp/actions/webrtc_actions.jsx
+++ b/webapp/actions/webrtc_actions.jsx
@@ -4,7 +4,7 @@
import AppDispatcher from 'dispatcher/app_dispatcher.jsx';
import {WebrtcActionTypes} from 'utils/constants.jsx';
-import Client from 'client/web_client.jsx';
+import {Client4} from 'mattermost-redux/client';
export function initWebrtc(userId, isCalling) {
AppDispatcher.handleServerAction({
@@ -22,15 +22,17 @@ export function handle(message) {
}
export function webrtcToken(success, error) {
- Client.webrtcToken(
+ Client4.webrtcToken().then(
(data) => {
if (success) {
success(data);
}
- },
+ }
+ ).catch(
() => {
if (error) {
error();
}
- });
+ }
+ );
}