Commit 8aae5d00 by Kim Peace

Fixed call from contact

parent 88fff62f
...@@ -73,7 +73,6 @@ document.addEventListener("DOMContentLoaded", function () { ...@@ -73,7 +73,6 @@ document.addEventListener("DOMContentLoaded", function () {
}); });
document.addEventListener("readystatechange", () => { document.addEventListener("readystatechange", () => {
switch (document.readyState) { switch (document.readyState) {
case "interactive": case "interactive":
break; break;
...@@ -146,7 +145,12 @@ Common.getProfileImgUrl = function (path) { ...@@ -146,7 +145,12 @@ Common.getProfileImgUrl = function (path) {
if (receivedString == "" || receivedString == undefined) { if (receivedString == "" || receivedString == undefined) {
return Common.generateProfileImgURLFromServer(userInfo[0], userInfo[1]); return Common.generateProfileImgURLFromServer(userInfo[0], userInfo[1]);
} }
return "data:image/"+userInfo[0].split('.').pop()+";base64," + receivedString; return (
"data:image/" +
userInfo[0].split(".").pop() +
";base64," +
receivedString
);
} }
return Common.generateProfileImgURLFromServer(userInfo[0], userInfo[1]); return Common.generateProfileImgURLFromServer(userInfo[0], userInfo[1]);
} else { } else {
...@@ -186,7 +190,9 @@ Common.startCollaboration = function (collaborationType) { ...@@ -186,7 +190,9 @@ Common.startCollaboration = function (collaborationType) {
} }
} }
CHAT_SOCKET.emitCollaborationFinishMessage(); if (typeof CHAT_SOCKET != "undefined") {
CHAT_SOCKET.emitCollaborationFinishMessage();
}
NativeBridgeDelegate.finishAllCollaboration(); NativeBridgeDelegate.finishAllCollaboration();
NativeBridgeDelegate.startCollaboration(collaborationType); NativeBridgeDelegate.startCollaboration(collaborationType);
Common.dismissLoadingIndicator(); Common.dismissLoadingIndicator();
......
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