Commit b1a9a341 by Kim Peace

Merge branch 'bug/coview_login' into 'develop'

Added coview login retry process

See merge request !258
parents 9fdd2c5a 609724fb
......@@ -7,12 +7,23 @@ CoviewBridge.bindReadyEvent = function () {
// add login ID if not exist
CoviewBridge.addLoginID(globalUserInfo.loginId);
coview_api.Login(globalUserInfo.loginId);
CollaborationUI.updateScreen(globalUserInfo.collaborationType);
NativeBridgeDelegate.setHostRequestFlg(HostRequestFlag.DONE);
CoviewBridge.loginCoview();
});
};
CoviewBridge.loginCoview = function () {
try {
coview_api.Login(globalUserInfo.loginId);
} catch (err) {
setTimeout(() => {
CoviewBridge.loginCoview();
}, 1000);
return;
}
CollaborationUI.updateScreen(globalUserInfo.collaborationType);
NativeBridgeDelegate.setHostRequestFlg(HostRequestFlag.DONE);
};
CoviewBridge.bindFermiWebSocketOpenned = function () {
try {
wc_api.addEventListener("open", async function (event) {
......@@ -254,7 +265,7 @@ CollaborationFeature.didReceivedJoinRoomInfoResponseMessage = function () {
CoviewBridge.changeHostFromModal = function () {
const userID = CollaborationUI.openedNamecardUserID;
// call in agent_app.js
coview_api.HostChange(userID);
};
......@@ -509,7 +520,7 @@ CoviewBridge.exitCollaboration = function () {
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.DOCUMENT) {
NativeBridgeDelegate.exitMeetingRoom();
}
if ($("#recordBtn .record").hasClass("disable")) {
recordStop().then(function () {
CoviewBridge.finishCollaboration();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment