Commit 10fd73d3 by Lee Munkyeong

全協業終了対応

parent a6499c0a
......@@ -205,7 +205,13 @@ function setSocketAction () {
let type;
let collaborationType;
if (message.text == DATA_MESSAGE_SCHEME + FINISH_ALL_COLLABORATION_SIGNAL) {
console.log('allFINISH');
$('.collabo_area.start').each(function (index, collaborationMessage) {
$(collaborationMessage).removeClass('start');
$(collaborationMessage).addClass('end');
$(collaborationMessage).addClass('disable');
$(collaborationMessage).find('.collaboation_join_button').attr('disabled', 'disabled');
$(collaborationMessage).find('.collaboration_join_message').text(getLocalizedString('message_ended'));
});
return;
}
if ( message.text.includes(messageSeperator) ) {
......
......@@ -61,6 +61,7 @@ $.lang.en = {
"groupChatRoom":"Group",
"myGroup":"My Group",
"allGroup":"All Group",
"message_ended" : "End",
"returnToRootGroup":"Return to Root Group",
"returnToParentGroup":"Return to Parent Group",
"quickBtn":"Quick Button",
......
......@@ -61,6 +61,7 @@ $.lang.ja = {
"groupChatRoom":"グループ",
"myGroup":"マイグループ",
"allGroup":"全グループ",
"message_ended" : "終了しました",
"returnToRootGroup":"トップグループに戻る",
"returnToParentGroup":"上位グループに戻る",
"quickBtn":"クイックボタン",
......
......@@ -61,6 +61,7 @@ $.lang.ko = {
"groupChatRoom":"그룹",
"myGroup":"내그룹",
"allGroup":"전그룹",
"message_ended" : "종료되었습니다.",
"returnToRootGroup":"최상위그룹으로 돌아가기",
"returnToParentGroup":"상위그룹으로 돌아가기",
"quickBtn":"퀵버튼",
......
......@@ -119,7 +119,12 @@ $(function () {
console.log("=============> READY : ready for coview api");
Coview_addLoginId(globalUserInfo.loginId);
coview_api.Login(globalUserInfo.loginId);
initCollaborationUI(joinCollaborationType)
initCollaborationUI(joinCollaborationType);
if (CHAT_UTIL.isAndroid()) {
android.setHostRequestFlg(HOST_REQUEST_FLG.DONE);
} else {
webkit.messageHandlers.setHostRequestFlg.postMessage(HOST_REQUEST_FLG.DONE);
}
fw.socket.on('message', async function(data) {
console.log('====> message::data: ', data);
if (data.type ==="CHANGE_COLLABORATION") {
......@@ -132,6 +137,7 @@ $(function () {
}
if (CHAT_UTIL.isAndroid() && data.payload.collaborationType == COLLABORATION_TYPE.DOCUMENT && androidVersion < ANDROID_SDK_VERSION.O) {
coview_api.HeartBeatUser(globalUserInfo.loginId);
alert(getLocalizedString('not_support_version'));
joinCollaborationType = COLLABORATION_TYPE.CAMERA;
} else {
......@@ -182,6 +188,7 @@ $(function () {
var isAndroid = data.payload.isAndroid;
var isAble = data.payload.isAble
if (g_isMainMan && isAndroid && !isAble && joinCollaborationType == COLLABORATION_TYPE.DOCUMENT) {
coview_api.HeartBeatUser(globalUserInfo.loginId);
alert(getLocalizedString('err_target_android_version_not_support'));
} else if (g_isMainMan){
Coview_changeHost(getFermiLoginId(data.payload.loginId));
......@@ -199,6 +206,7 @@ $(function () {
webkit.messageHandlers.setHostRequestFlg.postMessage(HOST_REQUEST_FLG.DOING);
}
if (g_isMainMan) {
coview_api.HeartBeatUser(globalUserInfo.loginId);
if(confirm(getLocalizedString('norify_request_host_change', data.payload.hostId))) {
Coview_changeHost(getFermiLoginId(data.payload.hostId));
if (CHAT_UTIL.isAndroid()) {
......@@ -571,6 +579,11 @@ function Coview_exitCollaboration(isDocument = false) {
android.exitMeetingRoom();
}
}
if (socket != null && socket.connected) {
socket.emit('createMessage', {
text: DATA_MESSAGE_SCHEME + FINISH_ALL_COLLABORATION_SIGNAL
}, 0);
}
if ($('#recordBtn').hasClass('bg_red')) {
recordStop(Coview_finishCollaboration);
} else {
......
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