From 67a243b1525c492679a0ea7866fdf7072f2b2da3 Mon Sep 17 00:00:00 2001
From: Alexis Lopez Zubieta <contact@azubieta.net>
Date: Mon, 21 Oct 2019 15:32:58 -0500
Subject: [PATCH] call subscribeToOcsApiCallback after the connection to the
 websocket

---
 src/components/App.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/components/App.js b/src/components/App.js
index 85a984d..a864d61 100644
--- a/src/components/App.js
+++ b/src/components/App.js
@@ -75,6 +75,8 @@ function App(){
         const shouldCheckForUpdates = !updateCheckedAt || (updateCheckedAt + updateCheckAfter) < new Date().getTime();
         if (shouldCheckForUpdates) ocsApiState.ocsManagerApi.send('UpdateHandler::checkAll', []);
         setAppInfo();
+      }).then(() => {
+          subscribeToOcsApiCallback();
       });
     }
 
-- 
GitLab