From 23ccfc845ca2350075f6027e16c6206fc7b71716 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Mon, 26 Jun 2017 08:16:57 -0400
Subject: Move remaining actions over to use redux and v4 endpoints (#6720)

---
 webapp/actions/webrtc_actions.jsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'webapp/actions/webrtc_actions.jsx')

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();
             }
-        });
+        }
+    );
 }
-- 
cgit v1.2.3-1-g7c22

