Commit 2f805a11 by Kim Eunchul

Merge remote-tracking branch 'origin/develop' into squash/socket_kim-ec

parents 7299ec5f 91ad8f0f
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1, user-scalable=0"> content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1, user-scalable=0">
<title>LiveTaskyell</title> <title>LiveTaskyell</title>
<link rel="stylesheet" href="./css/notosansjp.css"> <link rel="stylesheet" href="./css/notosansjp.css">
<link rel="stylesheet" href="./fontawesome/css/all.css" > <link rel="stylesheet" href="./fontawesome/css/all.css">
<link rel="stylesheet" href="./css/bootstrap.min.css"> <link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./css/common.css"> <link rel="stylesheet" href="./css/common.css">
<link rel="stylesheet" href="./css/chat.css"> <link rel="stylesheet" href="./css/chat.css">
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<!-- ナビメニュー --> <!-- ナビメニュー -->
<nav> <nav>
<div class="row h-100 align-items-center"> <div class="row h-100 align-items-center">
<div class="col-4 pr-0"> <div class="col-10 pr-0">
<div class="nav-item"> <div class="nav-item">
<div class="nav_prev"> <div class="nav_prev">
<a href="chat_room.html"><span>ルーム</span></a> <a href="chat_room.html"><span>ルーム</span></a>
...@@ -66,18 +66,19 @@ ...@@ -66,18 +66,19 @@
<div id="myGroupListForMakeRoom"></div> <div id="myGroupListForMakeRoom"></div>
</div> </div>
</div> </div>
</div>
<div class="tab_content" id="tab2_content"> <div class="tab_content" id="tab2_content">
<div class="breadcrumb" id="groupPathAreaForAddUser"></div> <div class="breadcrumb" id="groupPathAreaForAddUser"></div>
<div class="chat_list"> <div class="chat_list">
<!-- 全グループ --> <!-- 全グループ -->
<ul class="p-0 chat_make_room_list"> <ul class="p-0 chat_make_room_list">
<li class="d-flex align-items-center" id="rootGroupArea"> <li class="d-flex align-items-center" id="rootGroupArea">
<a href="#" class="w-100" id="rootGroupBtnForAddUser"> <a href="#" class="w-100" id="rootGroupBtnForAddUser">
<div class="chat_item d-flex flex-row align-items-center"> <div class="chat_item d-flex flex-row align-items-center">
<div class="chat_item_l"> <div class="chat_item_l">
<div class="thumbnail-icon"> <div class="thumbnail-icon">
<img src="icon/icon_prev_top.svg" alt="トップグループに戻る" /> <img src="icon/icon_prev_top.svg" alt="トップグループに戻る" />
</div>
</div> </div>
<div class="chat_item_m px-0"> <div class="chat_item_m px-0">
<div class="d-flex flex-column"> <div class="d-flex flex-column">
...@@ -87,15 +88,15 @@ ...@@ -87,15 +88,15 @@
</div> </div>
</div> </div>
</div> </div>
</div> </a>
</a> </li>
</li> <li class="d-flex align-items-center" id="parentGroupArea">
<li class="d-flex align-items-center" id="parentGroupArea"> <a href="#" class="w-100" id="parentGroupBtnForAddUser">
<a href="#" class="w-100" id="parentGroupBtnForAddUser"> <div class="chat_item d-flex flex-row align-items-center">
<div class="chat_item d-flex flex-row align-items-center"> <div class="chat_item_l">
<div class="chat_item_l"> <div class="thumbnail-icon">
<div class="thumbnail-icon"> <img src="icon/icon_prev.svg" alt="上位グループに戻る" />
<img src="icon/icon_prev.svg" alt="上位グループに戻る" /> </div>
</div> </div>
<div class="chat_item_m px-0"> <div class="chat_item_m px-0">
<div class="d-flex flex-column"> <div class="d-flex flex-column">
...@@ -105,14 +106,14 @@ ...@@ -105,14 +106,14 @@
</div> </div>
</div> </div>
</div> </div>
</a> </a>
</li> </li>
<div id="childGroupListAreaForAddUser"></div> <div id="childGroupListAreaForAddUser"></div>
<div id="userInGroupListForAddUser"></div> <div id="userInGroupListForAddUser"></div>
</ul> </ul>
</div>
</div> </div>
</div> </div>
</div>
<div class="chat_make_room"> <div class="chat_make_room">
<ul class="overlay_src_msg" style="padding-inline-start: 20px;"> <ul class="overlay_src_msg" style="padding-inline-start: 20px;">
</ul> </ul>
......
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
<script src="./js/Models/deviceinfo.js"></script> <script src="./js/Models/deviceinfo.js"></script>
<script src="./js/Models/serverinfo.js"></script> <script src="./js/Models/serverinfo.js"></script>
<script src="./js/Models/userinfo.js"></script> <script src="./js/Models/userinfo.js"></script>
<script src="./js/Models/roominfo.js"></script>
<!-- View --> <!-- View -->
<script src="./js/views/chats/chat-room.js"></script> <script src="./js/views/chats/chat-room.js"></script>
<script src="./js/views/chats/chat-room-search.js"></script> <script src="./js/views/chats/chat-room-search.js"></script>
......
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 128"><defs><style>.cls-1{opacity:0.9;}.cls-2{opacity:0.5;}.cls-3{fill:#fefefe;}.cls-4{fill:#707070;}.cls-5{fill:#fff;}</style></defs><g id="レイヤー_2" data-name="レイヤー 2"><g id="オフライン時の動画再生ボタン"><g class="cls-1"><image class="cls-2" width="128" height="128" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsSAAALEgHS3X78AAAQBklEQVR4Xu1d23bbRhIsyo5sJbbirGNv/v/rdjeJYzmOLNmWuA9AcQqFHlxIAASpqXP6gLqBIqq6umcwHG622y0Kni6e9/3CqWOz2Wz6fqcL2zPPkM25vD4j2knfVwR+cXZfn4swTlYAGcI3ErDH+2KLRPw2+Lp6cKIX8qQEIKRHhG8AXNiRj/VvhoIX5hGJ9Ec7nrwgVt8DGOk5wp/Vjy/ksX7PnSAnBiVNSX8E8GBHPg4FoQa1ZjGsUgCBvXt2K8nPUL0OHjX4c3UCnjOCEkVSH+r4bvEgRxdGQxB8OWsUwqoE0JHtSrgS/EMQl/KYv6cu0FcKNJMfkQj/VsdXecyIhKGiWK0QViGADPGe4ST80uKFxKU9ViegCIC8CLSWk0AS+xXAfR3+mOECoSDUHVYlhKMKIEM8yXLSSexLiSv7mkEB0AVUAEMdQAVAYu8B3FncdzyOxLAqIRxNADX5Trxmu5J+JfGjBb8/VABAXgQ5B+gSwBeLWwn+XMW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jrmfW7eg9U1xAzYlYBAOkFWF+Qawq1XtIy6QKvkPoCdwMXgoqBIthHAPyflfSuHobk800azH596xbfv6d23+jyMXPWK2YXAJEpCV4/XQRcdv7aji4CjhZyQohGDV2I/r+I+Du0yWfm61FJ/4I02iHxu0YPC5IPAJsFnwsA+j6nmItJXiCRq0vPPX5EWpWs6xG1R1AnGCIC7VeY+VqqviINWXXk8k8mSDprPOdA3O63wPyW71hcAEQtBA1fT0AiVQwUhIa6AKNrXSKQF4Hbf1Trdc7Ch6+ML2iSrjWexD9AxLY08cTRBAC03ECFcIEkBF1vqCuPuRz9ZRBDFqbmkCtPXZNXX+xrJV3vdfCc6jKLZ73iqAIgMkJgafDlZpcWuiz90h5HfQCQF0HOAbRRvbfHaut6b8Oz3YfDRyWeWIUAiIwQ1BVUDBSEx6U81vsI+/QAj2g2gHSCb0F8R5P0KNtXQzyxKgEQIgSg6QjqDO4QLo5oKKjnjKAXIzcEVJI9wzXTNeMBrIt4YpUCUHS4gopCZwGf2XHMjSO9GOoCSu6Dfc/JXm22R1i9ABQmBh4jQVzY9/RvhoIXxuctcoTv/mbtpCtOSgCKoEzwuAm+PgROcItw4LRIV5ysABwZQeS+Hgq/OCdPuONsBJCDCWM0zoXoHM5eAAXd+D+Jsl47A4laNgAAAABJRU5ErkJggg=="/><circle class="cls-3" cx="61" cy="61" r="54.75"/></g><path class="cls-4" d="M90.78,58.57,48,33.89a2.81,2.81,0,0,0-4.21,2.43V85.68A2.81,2.81,0,0,0,48,88.11L90.78,63.43A2.81,2.81,0,0,0,90.78,58.57Z"/><g class="cls-1"><image class="cls-2" width="128" height="128" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsSAAALEgHS3X78AAAFwElEQVR4Xu3a2XLiOABG4WMgISTpZWrm/Z9xptMdCAE8F5JiWRjM4kWS/1OlcjWmcqPPsmy6KMsSNd1mbV9Qebdo+0JRFEXbd0otI8l2EoA38f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rsgBACGDiAEAIJg8Apo1AAGxTRSAAXlNEIABBU0MgAA1NCYEAnGgqCATgTFNAIAAt5Y5AAC4oZwQCcGG5IhCAK8oRgQBcWW4IBOCGckIgADeWCwIBuKMcEAjAnaWOQAA6KGUEAtBRqSIQgA5LEYEAdFxqCASgh1JCIAA9lQoCAeixFBAIQM/FjkAABmggBKUdYTugLIqCJgQCMFADIXCVDePQhEAABqxnBE2T3jRqCcDA9YSgdqUD+2Ac7Di6FQjACHWIYMXxxO+Az2Ds7LnSHr8SgJHqAMGKCsGBauI/gA2wtscNsKVCUPirgACM2J0ISszkz4Al8AJ8B96B38CbHUvgAYNghr0VuD8iACN3IwJ/2V/azxbAEwbFsz0+AY/23Awo7PhKACLoQgSld3STv8Nc+Quqe/zcjoUdc8zkOwC1BCCSLkAQAthj7vnfMVd6ibnvb6l2/kePfWECEFEXIID61f+Buee7DeEW+AX8sec+CR4Dwz8mAJHVgiC8+jeYDZ97LNxjJv9fzAZwjYGwowJQQyAAEXYGQQhgjZnoFWYuD5gJfwP+w+AIVwIBSKETCJpWgDfMHmBhzzkYv+1YUwHQLSClGhA0AVhiHvXm9nt7zFX/QfUyyAdQ6lVwQnkISm+4TeAW85LHPefjnQtfBTduAovy/P8YUpFUFIV7iVNgJnvuDfecD9WOP/wx6OjqBwFIKosAKgT+0Z3zVwl/1TiafBCAJAsgHL3epf64VwKN/xsIBCDpPAgnOzXxLgGYeDPUpPsfA6wg/jajBsYAAAAASUVORK5CYII="/><rect class="cls-5" x="58.08" y="-14.66" width="5.84" height="151.32" rx="2.92" transform="translate(-25.27 61) rotate(-45)"/></g></g></g></svg>
\ No newline at end of file
...@@ -24,7 +24,7 @@ var CoviewUserInfo = class { ...@@ -24,7 +24,7 @@ var CoviewUserInfo = class {
const unwrappedType = NativeBridgeDataSource.getJoinCollaborationType(); const unwrappedType = NativeBridgeDataSource.getJoinCollaborationType();
this.collaborationType = this.parseNumberToCoworkType(unwrappedType); this.collaborationType = this.parseNumberToCoworkType(unwrappedType);
this.joinType = NativeBridgeDataSource.getCollaborationJoinFlg(); this.joinType = NativeBridgeDataSource.getCollaborationJoinFlg();
this.isLeaved = false; this.isLeaved = false;
this.meetingID = 0; this.meetingID = 0;
} }
...@@ -90,7 +90,7 @@ var CoviewUserInfo = class { ...@@ -90,7 +90,7 @@ var CoviewUserInfo = class {
// variable name for legacy connection to agent_app.js in coview library // variable name for legacy connection to agent_app.js in coview library
var globalUserInfo = new CoviewUserInfo( var globalUserInfo = new CoviewUserInfo(
currentUserInfo.sid, currentUserInfo.sid,
currentUserInfo.loginID, currentUserInfo.shopName + "_" + currentUserInfo.loginID,
roomInfo.roomID, roomInfo.roomID,
currentUserInfo.shopName currentUserInfo.shopName
); );
...@@ -173,4 +173,4 @@ Common.startCollaboration = function (collaborationType) { ...@@ -173,4 +173,4 @@ Common.startCollaboration = function (collaborationType) {
NativeBridgeDelegate.finishAllCollaboration(); NativeBridgeDelegate.finishAllCollaboration();
} }
NativeBridgeDelegate.startCollaboration(collaborationType); NativeBridgeDelegate.startCollaboration(collaborationType);
}; };
\ No newline at end of file
...@@ -117,7 +117,7 @@ NativeBridgeDelegate.joinCollaboration = function ( ...@@ -117,7 +117,7 @@ NativeBridgeDelegate.joinCollaboration = function (
NativeBridgeDelegate.inviteUsers = function (userIDList) { NativeBridgeDelegate.inviteUsers = function (userIDList) {
if (typeof android != "undefined") { if (typeof android != "undefined") {
android.inviteUsers(userIDList, false); android.inviteUsers(userIDList);
} else { } else {
webkit.messageHandlers.inviteUsers.postMessage({ webkit.messageHandlers.inviteUsers.postMessage({
userIdList: userIDList, userIdList: userIDList,
...@@ -146,7 +146,7 @@ NativeBridgeDelegate.finishPIPMode = function (needsAndroid = false) { ...@@ -146,7 +146,7 @@ NativeBridgeDelegate.finishPIPMode = function (needsAndroid = false) {
if (deviceInfo.isiOS()) { if (deviceInfo.isiOS()) {
webkit.messageHandlers.finishPipMode.postMessage({}); webkit.messageHandlers.finishPipMode.postMessage({});
} else if (needsAndroid && typeof android != "undefined") { } else if (needsAndroid && typeof android != "undefined") {
android.finishPip(); android.finishPIP();
} }
}; };
......
...@@ -53,6 +53,7 @@ $.lang.en = { ...@@ -53,6 +53,7 @@ $.lang.en = {
"groupChatRoom":"Group", "groupChatRoom":"Group",
"myGroup":"My Group", "myGroup":"My Group",
"allGroup":"All Group", "allGroup":"All Group",
"message_join": "Join",
"message_ended" : "End", "message_ended" : "End",
"returnToRootGroup":"Return to Root Group", "returnToRootGroup":"Return to Root Group",
"returnToParentGroup":"Return to Parent Group", "returnToParentGroup":"Return to Parent Group",
......
...@@ -53,6 +53,7 @@ $.lang.ja = { ...@@ -53,6 +53,7 @@ $.lang.ja = {
"groupChatRoom":"グループ", "groupChatRoom":"グループ",
"myGroup":"マイグループ", "myGroup":"マイグループ",
"allGroup":"全グループ", "allGroup":"全グループ",
"message_join": "参加する",
"message_ended" : "終了しました", "message_ended" : "終了しました",
"returnToRootGroup":"トップグループに戻る", "returnToRootGroup":"トップグループに戻る",
"returnToParentGroup":"上位グループに戻る", "returnToParentGroup":"上位グループに戻る",
......
...@@ -53,6 +53,7 @@ $.lang.ko = { ...@@ -53,6 +53,7 @@ $.lang.ko = {
"groupChatRoom":"그룹", "groupChatRoom":"그룹",
"myGroup":"내그룹", "myGroup":"내그룹",
"allGroup":"전그룹", "allGroup":"전그룹",
"message_join": "참가하기",
"message_ended" : "종료되었습니다.", "message_ended" : "종료되었습니다.",
"returnToRootGroup":"최상위그룹으로 돌아가기", "returnToRootGroup":"최상위그룹으로 돌아가기",
"returnToParentGroup":"상위그룹으로 돌아가기", "returnToParentGroup":"상위그룹으로 돌아가기",
......
...@@ -119,7 +119,7 @@ ChatMediaHandler.videoEncodeEnd = function (encodedUri) { ...@@ -119,7 +119,7 @@ ChatMediaHandler.videoEncodeEnd = function (encodedUri) {
res.fileName + res.fileName +
"&roomId=" + "&roomId=" +
roomInfo.roomID; roomInfo.roomID;
var imageName = res.fileName; var imageName = new String(res.fileName);
// uploadFileの判断 // uploadFileの判断
var extension = imageName var extension = imageName
...@@ -151,6 +151,7 @@ ChatMediaHandler.videoEncodeEnd = function (encodedUri) { ...@@ -151,6 +151,7 @@ ChatMediaHandler.videoEncodeEnd = function (encodedUri) {
controls: "true", controls: "true",
width: "auto", width: "auto",
style: "max-width:100%", style: "max-width:100%",
poster: "./img/bg_movie.jpg",
}); });
const source = $("<source/>", { src: videoSrc }); const source = $("<source/>", { src: videoSrc });
const downloadIcon = $("<a/>", { const downloadIcon = $("<a/>", {
...@@ -350,6 +351,7 @@ ChatMediaHandler.uploadImage = function (formData) { ...@@ -350,6 +351,7 @@ ChatMediaHandler.uploadImage = function (formData) {
controls: "true", controls: "true",
width: "auto", width: "auto",
style: "max-width:100%", style: "max-width:100%",
poster: "./img/bg_movie.jpg",
}); });
const source = $("<source/>", { src: videoSrc }); const source = $("<source/>", { src: videoSrc });
const downloadIcon = $("<a/>", { const downloadIcon = $("<a/>", {
......
...@@ -98,7 +98,6 @@ ChatRoom.loadMessages = function (joinRoomID, joinRoomName) { ...@@ -98,7 +98,6 @@ ChatRoom.loadMessages = function (joinRoomID, joinRoomName) {
let messages = NativeBridgeDataSource.getMessagesByRoomID(roomID); let messages = NativeBridgeDataSource.getMessagesByRoomID(roomID);
ChatRoom.prependMessage(messages, roomID); ChatRoom.prependMessage(messages, roomID);
window.addEventListener( window.addEventListener(
"load", "load",
function (event) { function (event) {
...@@ -167,9 +166,9 @@ ChatRoom.prependMessage = function (messages) { ...@@ -167,9 +166,9 @@ ChatRoom.prependMessage = function (messages) {
// 日付ラーベル表示 // 日付ラーベル表示
if ( if (
messageCreatedTime != checkBeforeDate messageCreatedTime != checkBeforeDate &&
&& checkBeforeDate != "" checkBeforeDate != "" &&
&& !isToday !isToday
) { ) {
const html = ChatRoom.renderDateLabelMessage(beforeDate); const html = ChatRoom.renderDateLabelMessage(beforeDate);
messageElement.append(html); messageElement.append(html);
...@@ -255,13 +254,17 @@ ChatRoom.renderCollaborationMessage = function (message, isToday, isOtherYear) { ...@@ -255,13 +254,17 @@ ChatRoom.renderCollaborationMessage = function (message, isToday, isOtherYear) {
collaborationInfo.collaborationType collaborationInfo.collaborationType
); );
const collaborationJoinMessage =
message.messageType == MessageType.COMMUNICATIONEND
? getLocalizedString("message_ended")
: getLocalizedString("message_join");
const html = Mustache.render(collaborationMessageTemplate, { const html = Mustache.render(collaborationMessageTemplate, {
messageId: message.messageId, messageId: message.messageId,
roomName: roomName, roomName: roomName,
userCount: userInCollaboration.length, userCount: userInCollaboration.length,
userList: displayUserList, userList: displayUserList,
insertDate: message.insertDate, insertDate: message.insertDate,
// TODO: peacekim:: should check collaborationInfo.collaborationType is string or number
collaborationType: strCollaborationType, collaborationType: strCollaborationType,
meetingId: meetingID, meetingId: meetingID,
isToday: isToday, isToday: isToday,
...@@ -270,6 +273,7 @@ ChatRoom.renderCollaborationMessage = function (message, isToday, isOtherYear) { ...@@ -270,6 +273,7 @@ ChatRoom.renderCollaborationMessage = function (message, isToday, isOtherYear) {
createdAtYear: createdAtYear, createdAtYear: createdAtYear,
isOtherYear: isOtherYear, isOtherYear: isOtherYear,
isEnded: message.messageType == MessageType.COMMUNICATIONEND ? true : false, isEnded: message.messageType == MessageType.COMMUNICATIONEND ? true : false,
collaborationJoinMessage: collaborationJoinMessage,
}); });
return message.message.includes("attachedImages") || return message.message.includes("attachedImages") ||
message.message.includes("attachedVideos") message.message.includes("attachedVideos")
......
...@@ -17,6 +17,9 @@ ChatRoom.bindSearchUI = function () { ...@@ -17,6 +17,9 @@ ChatRoom.bindSearchUI = function () {
chatSearchInput.focus(); chatSearchInput.focus();
searchMessage.addClass("onfocus"); searchMessage.addClass("onfocus");
$(".chat_list").removeClass("none"); $(".chat_list").removeClass("none");
//メッセージ情報をCMS側から最新に更新
NativeBridgeDelegate.updatePreMessage("");
}); });
$(".chat_room_src_form .cancel").click(function () { $(".chat_room_src_form .cancel").click(function () {
......
...@@ -5,6 +5,7 @@ document.addEventListener("DOMContentLoaded", function () { ...@@ -5,6 +5,7 @@ document.addEventListener("DOMContentLoaded", function () {
$(".change_room_name_btn button").click(function () { $(".change_room_name_btn button").click(function () {
$("form").submit(); $("form").submit();
}); });
$("#roomNameInput").attr("placeholder", roomInfo.roomName);
}); });
$("#roomNameChangeBtn").click(function () { $("#roomNameChangeBtn").click(function () {
......
...@@ -50,6 +50,16 @@ CollaborationUI.bindDisplayUsersButton = function () { ...@@ -50,6 +50,16 @@ CollaborationUI.bindDisplayUsersButton = function () {
}); });
}; };
CollaborationUI.userListSlideOut = function () {
const w = $(".user_btn").width();
$(".user_btn").removeClass("hide");
$("#overlay_user_list.overlay")
.removeClass("slidein")
.css({ transform: "translateX(" & -w & ")" });
scrollTo(0, 0);
CollaborationUI.bindDisableScroll();
};
CollaborationUI.bindChangeHostButton = function () { CollaborationUI.bindChangeHostButton = function () {
$(".ch_host_btn").click(function () { $(".ch_host_btn").click(function () {
const target = $(this).val(); const target = $(this).val();
...@@ -130,6 +140,7 @@ CollaborationUI.makeNameCard = function (shopMemberID) { ...@@ -130,6 +140,7 @@ CollaborationUI.makeNameCard = function (shopMemberID) {
isFavorite: nameCardInfo.isFavorite, isFavorite: nameCardInfo.isFavorite,
isHost: isCollaborationHost, isHost: isCollaborationHost,
whosHost: whosHost, whosHost: whosHost,
collaborationId: globalUserInfo.shopName + "_" + nameCardInfo.loginId,
}); });
let namecardObj = $(jQuery.parseHTML(namecardHTML)).on( let namecardObj = $(jQuery.parseHTML(namecardHTML)).on(
......
...@@ -3,13 +3,12 @@ var FermiWebSocketBridge = {}; ...@@ -3,13 +3,12 @@ var FermiWebSocketBridge = {};
// call from modal_collabo_profile.html // call from modal_collabo_profile.html
FermiWebSocketBridge.requestHostChange = function (loginID) { FermiWebSocketBridge.requestHostChange = function (loginID) {
fw.sendToMsg("others", "HOST_CHANGE_REQUEST", { fw.sendToMsg("others", "HOST_CHANGE_REQUEST", {
loginId: getFermiLoginId(loginID), loginId: loginID,
}); });
}; };
FermiWebSocketBridge.shareFileHost = function (collaborationType) { FermiWebSocketBridge.shareFileHost = function (collaborationType) {
fw.sendToMsg("others", "SHARE_FILE_HOST", { fw.sendToMsg("others", "SHARE_FILE_HOST", {
// TODO: Peacekim check collaboration type as coviewType
collaborationType: collaborationType, collaborationType: collaborationType,
}); });
}; };
...@@ -19,14 +18,14 @@ FermiWebSocketBridge.hostChangeResponse = function () { ...@@ -19,14 +18,14 @@ FermiWebSocketBridge.hostChangeResponse = function () {
fw.sendToMsg("others", "HOST_CHANGE_RESPONSE", { fw.sendToMsg("others", "HOST_CHANGE_RESPONSE", {
isAndroid: deviceInfo.isAndroid(), isAndroid: deviceInfo.isAndroid(),
isAble: deviceInfo.androidVersion >= ANDROID_SDK_VERSION.O, isAble: deviceInfo.androidVersion >= ANDROID_SDK_VERSION.O,
loginId: currentUserInfo.loginID, loginId: globalUserInfo.loginId,
}); });
}; };
// PIP_END_REQUEST // PIP_END_REQUEST
FermiWebSocketBridge.pipEndRequest = function (loginID) { FermiWebSocketBridge.pipEndRequest = function (loginID) {
fw.sendToMsg("others", "PIP_END_REQUEST", { fw.sendToMsg("others", "PIP_END_REQUEST", {
loginId: getFermiLoginId(loginID), loginId: loginID,
}); });
}; };
...@@ -46,6 +45,10 @@ FermiWebSocketBridge.hostRequestDone = function (hostID) { ...@@ -46,6 +45,10 @@ FermiWebSocketBridge.hostRequestDone = function (hostID) {
// GET_COLLABORATION_TYPE_RESPONSE // GET_COLLABORATION_TYPE_RESPONSE
FermiWebSocketBridge.getCollaborationTypeResponse = function (loginID) { FermiWebSocketBridge.getCollaborationTypeResponse = function (loginID) {
if (typeof meetingID == undefined) {
var meetingID = 0;
}
fw.sendToMsg("others", "GET_COLLABORATION_TYPE_RESPONSE", { fw.sendToMsg("others", "GET_COLLABORATION_TYPE_RESPONSE", {
loginId: loginID, loginId: loginID,
collaborationType: globalUserInfo.collaborationType, collaborationType: globalUserInfo.collaborationType,
...@@ -65,7 +68,7 @@ FermiWebSocketBridge.captureRequest = function () { ...@@ -65,7 +68,7 @@ FermiWebSocketBridge.captureRequest = function () {
// todo: peacekim:: check if it's okay for loginID // todo: peacekim:: check if it's okay for loginID
// instead of globalUserInfo.loginId // instead of globalUserInfo.loginId
fw.sendToMsg("others", "CAPTURE_REQUEST", { fw.sendToMsg("others", "CAPTURE_REQUEST", {
name: currentUserInfo.loginID, name: globalUserInfo.loginId,
}); });
}; };
...@@ -83,6 +86,10 @@ FermiWebSocketBridge.changeCollaboration = function ( ...@@ -83,6 +86,10 @@ FermiWebSocketBridge.changeCollaboration = function (
// CHANGE_HOST_APPLY // CHANGE_HOST_APPLY
FermiWebSocketBridge.changeHostApply = function () { FermiWebSocketBridge.changeHostApply = function () {
fw.sendToMsg("others", "CHANGE_HOST_APPLY", { fw.sendToMsg("others", "CHANGE_HOST_APPLY", {
hostId: currentUserInfo.loginID, hostId: globalUserInfo.loginId,
}); });
}; };
FermiWebSocketBridge.hostUpdated = function () {
fw.sendToMsg("others", "HOST_UPDATED", {});
};
...@@ -3,14 +3,14 @@ var FermiWebSocketMessageHandler = {}; ...@@ -3,14 +3,14 @@ var FermiWebSocketMessageHandler = {};
FermiWebSocketMessageHandler.bindWebSocketMessage = function () { FermiWebSocketMessageHandler.bindWebSocketMessage = function () {
fw.socket.on("message", async function (data) { fw.socket.on("message", async function (data) {
if (g_isMainMan) { if (g_isMainMan) {
// 自分がホストの場合
FermiWebSocketMessageHandler.handleMessagesToHost(data); FermiWebSocketMessageHandler.handleMessagesToHost(data);
} else if (data.payload.loginId == globalUserInfo.loginId) { } else if (data.payload.loginId == globalUserInfo.loginId) {
// 自分自身の場合 // 自分自身の場合
FermiWebSocketMessageHandler.handleMessagesToSelf(data); FermiWebSocketMessageHandler.handleMessagesToSelf(data);
} else {
// global messages
FermiWebSocketMessageHandler.handleMessagesToAll(data);
} }
// global messages
FermiWebSocketMessageHandler.handleMessagesToAll(data);
}); });
}; };
...@@ -43,7 +43,7 @@ FermiWebSocketMessageHandler.handleMessagesToSelf = function (data) { ...@@ -43,7 +43,7 @@ FermiWebSocketMessageHandler.handleMessagesToSelf = function (data) {
// 自分自身の場合 // 自分自身の場合
switch (data.type) { switch (data.type) {
case "HOST_CHANGE_REQUEST": case "HOST_CHANGE_REQUEST":
FermiWebSocketMessageHandler.hostChangeRequest(); FermiWebSocketMessageHandler.hostChangeRequest(data);
break; break;
case "PIP_END_REQUEST": case "PIP_END_REQUEST":
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.DOCUMENT) { if (globalUserInfo.collaborationType == COLLABORATION_TYPE.DOCUMENT) {
...@@ -70,6 +70,8 @@ FermiWebSocketMessageHandler.handleMessagesToAll = function (data) { ...@@ -70,6 +70,8 @@ FermiWebSocketMessageHandler.handleMessagesToAll = function (data) {
break; break;
case "API_SEND_OWNER_CHANGE_COMPLETE": case "API_SEND_OWNER_CHANGE_COMPLETE":
FermiWebSocketMessageHandler.apiSendOwnerChangeComplete(data); FermiWebSocketMessageHandler.apiSendOwnerChangeComplete(data);
CollaborationFeature.updateHost();
FermiWebSocketBridge.hostUpdated();
break; break;
case "API_SEND_OWNER_CHANGE_CONFIRM": case "API_SEND_OWNER_CHANGE_CONFIRM":
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) { if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) {
...@@ -81,6 +83,7 @@ FermiWebSocketMessageHandler.handleMessagesToAll = function (data) { ...@@ -81,6 +83,7 @@ FermiWebSocketMessageHandler.handleMessagesToAll = function (data) {
break; break;
case "HOST_REQUEST_DONE": case "HOST_REQUEST_DONE":
FermiWebSocketMessageHandler.hostRequestDone(); FermiWebSocketMessageHandler.hostRequestDone();
CollaborationFeature.updateHost();
break; break;
case "HOST_REQUEST_REJECT": case "HOST_REQUEST_REJECT":
FermiWebSocketMessageHandler.hostRequestReject(data); FermiWebSocketMessageHandler.hostRequestReject(data);
...@@ -89,6 +92,15 @@ FermiWebSocketMessageHandler.handleMessagesToAll = function (data) { ...@@ -89,6 +92,15 @@ FermiWebSocketMessageHandler.handleMessagesToAll = function (data) {
if (globalUserInfo.joinType != COLLABORATION_JOIN_TYPE.INVITED) { if (globalUserInfo.joinType != COLLABORATION_JOIN_TYPE.INVITED) {
FermiWebSocketMessageHandler.apiWelcome(); FermiWebSocketMessageHandler.apiWelcome();
} }
CollaborationFeature.updateHost();
break;
case "SWITCH_VIDEO":
CollaborationFeature.updateHost();
CollaborationUI.userListSlideOut();
$(".profile_favorite_btn").click();
break;
case "HOST_UPDATED":
CollaborationFeature.updateHost();
break; break;
default: default:
break; break;
...@@ -166,8 +178,8 @@ FermiWebSocketMessageHandler.captureRequest = function (data) { ...@@ -166,8 +178,8 @@ FermiWebSocketMessageHandler.captureRequest = function (data) {
}; };
// HOST_CHANGE_REQUEST // HOST_CHANGE_REQUEST
FermiWebSocketMessageHandler.hostChangeRequest = function () { FermiWebSocketMessageHandler.hostChangeRequest = function (data) {
FermiWebSocketBridge.hostChangeRequest(); FermiWebSocketBridge.hostChangeResponse(data);
}; };
// HOST_CHANGE_RESPONSE // HOST_CHANGE_RESPONSE
...@@ -185,7 +197,7 @@ FermiWebSocketMessageHandler.hostChangeResponse = function (data) { ...@@ -185,7 +197,7 @@ FermiWebSocketMessageHandler.hostChangeResponse = function (data) {
} else { } else {
FermiWebSocketBridge.pipEndRequest(data.payload.loginId); FermiWebSocketBridge.pipEndRequest(data.payload.loginId);
waitMillisecond(500); waitMillisecond(500);
CoviewBridge.changeHost(getFermiLoginId(data.payload.loginId)); CoviewBridge.changeHost(data.payload.loginId);
} }
}; };
...@@ -236,7 +248,7 @@ FermiWebSocketMessageHandler.changeHostApplyForHost = function (data) { ...@@ -236,7 +248,7 @@ FermiWebSocketMessageHandler.changeHostApplyForHost = function (data) {
waitMillisecond(500); waitMillisecond(500);
if (confirm(getLocalizedString("norify_request_host_change", hostID))) { if (confirm(getLocalizedString("norify_request_host_change", hostID))) {
CoviewBridge.changeHost(getFermiLoginId(hostID)); CoviewBridge.changeHost(hostID);
NativeBridgeDelegate.setHostRequestFlg(HostRequestFlag.DONE); NativeBridgeDelegate.setHostRequestFlg(HostRequestFlag.DONE);
} else { } else {
FermiWebSocketBridge.hostRequestReject(hostID); FermiWebSocketBridge.hostRequestReject(hostID);
...@@ -251,7 +263,7 @@ FermiWebSocketMessageHandler.hostRequestDone = function () { ...@@ -251,7 +263,7 @@ FermiWebSocketMessageHandler.hostRequestDone = function () {
// HOST_REQUEST_REJECT // HOST_REQUEST_REJECT
FermiWebSocketMessageHandler.hostRequestReject = function (data) { FermiWebSocketMessageHandler.hostRequestReject = function (data) {
if (data.payload.hostId == currentUserInfo.loginID) { if (data.payload.hostId == globalUserInfo.loginId) {
alert("REJECT for owner user"); alert("REJECT for owner user");
} }
NativeBridgeDelegate.setHostRequestFlg(HostRequestFlag.DONE); NativeBridgeDelegate.setHostRequestFlg(HostRequestFlag.DONE);
...@@ -265,7 +277,8 @@ FermiWebSocketMessageHandler.getCollaborationType = function (data) { ...@@ -265,7 +277,8 @@ FermiWebSocketMessageHandler.getCollaborationType = function (data) {
// GET_COLLABORATION_TYPE_RESPONSE // GET_COLLABORATION_TYPE_RESPONSE
FermiWebSocketMessageHandler.getCollaborationTypeResponse = function (data) { FermiWebSocketMessageHandler.getCollaborationTypeResponse = function (data) {
const collaborationType = data.payload.collaborationType; const collaborationType = data.payload.collaborationType;
const meetingID = data.payload.newMeetingId; const meetingID = data.payload.newMeetingId ?? 0;
FermiWebSocketMessageHandler.updateJoinChangeCollaboration(collaborationType); FermiWebSocketMessageHandler.updateJoinChangeCollaboration(collaborationType);
globalUserInfo.meetingID = meetingID; globalUserInfo.meetingID = meetingID;
CollaborationUI.updateScreen(globalUserInfo.collaborationType); CollaborationUI.updateScreen(globalUserInfo.collaborationType);
......
...@@ -14,9 +14,15 @@ CoviewBridge.bindReadyEvent = function () { ...@@ -14,9 +14,15 @@ CoviewBridge.bindReadyEvent = function () {
}; };
CoviewBridge.bindFermiWebSocketOpenned = function () { CoviewBridge.bindFermiWebSocketOpenned = function () {
wc_api.addEventListener("open", async function (event) { try {
FermiWebSocketMessageHandler.bindWebSocketMessage(); wc_api.addEventListener("open", async function (event) {
}); FermiWebSocketMessageHandler.bindWebSocketMessage();
});
} catch (err) {
setTimeout(() => {
CoviewBridge.bindFermiWebSocketOpenned();
}, 1000);
}
}; };
CoviewBridge.bindStartEvent = function () { CoviewBridge.bindStartEvent = function () {
...@@ -102,7 +108,6 @@ CoviewBridge.bindMessageEvent = function () { ...@@ -102,7 +108,6 @@ CoviewBridge.bindMessageEvent = function () {
if (globalUserInfo.isLeaved) { if (globalUserInfo.isLeaved) {
return; return;
} }
let loginIDList = new Array();
switch (json.api) { switch (json.api) {
case "LoginResponse": case "LoginResponse":
CollaborationFeature.didReceiveLoginResponseMessage(); CollaborationFeature.didReceiveLoginResponseMessage();
...@@ -126,10 +131,11 @@ CoviewBridge.bindMessageEvent = function () { ...@@ -126,10 +131,11 @@ CoviewBridge.bindMessageEvent = function () {
case "RoomMemberJoinedEvent": case "RoomMemberJoinedEvent":
// fall through // fall through
case "RoomMemberLeavedEvent": case "RoomMemberLeavedEvent":
attendingUsers = new Array();
for (let key in g_participants) { for (let key in g_participants) {
loginIDList.push(key); attendingUsers.push(key);
} }
CollaborationUI.refreshJoinedCollaboration(loginIDList); CollaborationUI.refreshJoinedCollaboration(attendingUsers);
break; break;
case "HostRequest": case "HostRequest":
// to be called by // to be called by
...@@ -185,9 +191,7 @@ CollaborationFeature.didReceiveLoginResponseMessage = async function () { ...@@ -185,9 +191,7 @@ CollaborationFeature.didReceiveLoginResponseMessage = async function () {
case COLLABORATION_JOIN_TYPE.INVITED: case COLLABORATION_JOIN_TYPE.INVITED:
// fall through // fall through
case COLLABORATION_JOIN_TYPE.ATTENDEE: case COLLABORATION_JOIN_TYPE.ATTENDEE:
// TODO:: here to update host
coview_api.JoinRoom(globalUserInfo.roomId, globalUserInfo.coWorkType); coview_api.JoinRoom(globalUserInfo.roomId, globalUserInfo.coWorkType);
break; break;
case COLLABORATION_JOIN_TYPE.HOST: case COLLABORATION_JOIN_TYPE.HOST:
let deleteRoomResult = JSON.parse( let deleteRoomResult = JSON.parse(
...@@ -225,9 +229,15 @@ CollaborationFeature.didReceivedJoinRoomInfoResponseMessage = function () { ...@@ -225,9 +229,15 @@ CollaborationFeature.didReceivedJoinRoomInfoResponseMessage = function () {
NativeBridgeDelegate.joinRoom(roomInfo.roomID, roomInfo.roomName); NativeBridgeDelegate.joinRoom(roomInfo.roomID, roomInfo.roomName);
}; };
CoviewBridge.changeHostFromModal = function () {
const userID = $("#changeHostModal").data("bs.modal")._config.collaborationid;
// call in agent_app.js
coview_api.HostChange(userID);
};
CoviewBridge.changeHost = function (userID) { CoviewBridge.changeHost = function (userID) {
// call in agent_app.js // call in agent_app.js
changeOwnerSend(userID); coview_api.HostChange(userID);
}; };
CoviewBridge.addLoginID = function (loginID) { CoviewBridge.addLoginID = function (loginID) {
...@@ -257,10 +267,11 @@ CollaborationFeature.updateHost = function () { ...@@ -257,10 +267,11 @@ CollaborationFeature.updateHost = function () {
} }
CollaborationUI.showHostMark(g_isMainManUsername); CollaborationUI.showHostMark(g_isMainManUsername);
$("#remoteVideoNameSpan").addClass("hide");
}; };
CollaborationUI.showHostButtons = function () { CollaborationUI.showHostButtons = function () {
$(".host_contents").removeClass("none"); $(".host_contents").removeClass("none");
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) { if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) {
$(".photo_select_button").removeClass("none"); $(".photo_select_button").removeClass("none");
...@@ -272,7 +283,6 @@ CollaborationUI.showHostButtons = function () { ...@@ -272,7 +283,6 @@ CollaborationUI.showHostButtons = function () {
}; };
CollaborationUI.hideHostButtons = function () { CollaborationUI.hideHostButtons = function () {
$(".host_contents").addClass("none"); $(".host_contents").addClass("none");
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) { if (globalUserInfo.collaborationType == COLLABORATION_TYPE.CAMERA) {
$(".photo_select_button").addClass("none"); $(".photo_select_button").addClass("none");
...@@ -284,24 +294,29 @@ CollaborationUI.hideHostButtons = function () { ...@@ -284,24 +294,29 @@ CollaborationUI.hideHostButtons = function () {
}; };
CollaborationUI.showHostMark = function (hostName) { CollaborationUI.showHostMark = function (hostName) {
const currentUserLoginIDDiv = $( // remove all host mark
"#collaboration_user_" + currentUserInfo.loginID attendingUsers.forEach(function (userName) {
); // hide other user's video area
const replaceHostIDDiv = $( $(userName).hide();
"#collaboration_user_" + getReplacedLoginId(hostName) // remove host mark
); const user = "#collaboration_user_" + getReplacedLoginId(userName);
const replacedMainManUserID = $( $(user).removeClass("host");
"#collaboration_user_" + getReplacedLoginId(g_isMainManUsername) });
);
// show host video area
$(hostName).show();
// set host name as current user if host name is not set
if (hostName == "") { if (hostName == "") {
if (!currentUserLoginIDDiv.hasClass("host") && coview_api.getRoomUsers()) { hostName = getReplacedLoginId(globalUserInfo.loginId);
currentUserLoginIDDiv.addClass("host"); }
}
} else { // find host named div
if (!replaceHostIDDiv.hasClass("host")) { const hostUserDiv = $("#collaboration_user_" + getReplacedLoginId(hostName));
replaceHostIDDiv.addClass("host");
} // add host mark
if (!hostUserDiv.hasClass("host")) {
hostUserDiv.addClass("host");
} }
}; };
...@@ -454,9 +469,9 @@ CollaborationUI.refreshJoinedCollaboration = function (loginIDList) { ...@@ -454,9 +469,9 @@ CollaborationUI.refreshJoinedCollaboration = function (loginIDList) {
NativeBridgeDataSource.getUserListByLoginId(loginIDList); NativeBridgeDataSource.getUserListByLoginId(loginIDList);
const sortedUserList = new Array(); const sortedUserList = new Array();
loginIDList.forEach(function (userId) { loginIDList.forEach(function (userID) {
joinedUserList.forEach(function (user) { joinedUserList.forEach(function (user) {
if (userId == user.loginId) { if (userID == user.loginId) {
sortedUserList.push(user); sortedUserList.push(user);
} }
}); });
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* Functions */ /* Functions */
/* --------------------------------------------------- */ /* --------------------------------------------------- */
let coview_api = new CoviewApi(); let coview_api = new CoviewApi();
var attendingUsers = new Array();
var isBoard = false; var isBoard = false;
var backgroundFileName; var backgroundFileName;
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
<span>キャンセル</span> <span>キャンセル</span>
</div> </div>
</button> </button>
<button type="button" onclick="CoviewBridge.changeHost({{shopMemberId}});" class="profile_chat_btn border-0 bg_blue text_white"> <button type="button" onclick="CoviewBridge.changeHostFromModal();"
class="profile_chat_btn border-0 bg_blue text_white">
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<span>引き渡し</span> <span>引き渡し</span>
</div> </div>
......
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
<button type="button" class="border-0 bg_navy" <button type="button" class="border-0 bg_navy"
onclick="CollaborationUI.removeFavoriteUserInCollaboration({{shopMemberId}})" id="favoriteButton"> onclick="CollaborationUI.removeFavoriteUserInCollaboration({{shopMemberId}})" id="favoriteButton">
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<span class="star active shopmember_{{shopMemberId}}" onclick="CHAT_UI.favoriteUserChange('{{shopMemberId}}',this)"></span> <span class="star active shopmember_{{shopMemberId}}"
onclick="CHAT_UI.favoriteUserChange('{{shopMemberId}}',this)"></span>
<span>お気に入り解除</span> <span>お気に入り解除</span>
</div> </div>
</button> </button>
...@@ -31,14 +32,16 @@ ...@@ -31,14 +32,16 @@
<button type="button" class="border-0 bg_navy" <button type="button" class="border-0 bg_navy"
onclick="CollaborationUI.insertFavoriteUserInCollaboration({{shopMemberId}})" id="favoriteButton"> onclick="CollaborationUI.insertFavoriteUserInCollaboration({{shopMemberId}})" id="favoriteButton">
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<span class="star disable shopmember_{{shopMemberId}}" onclick="Namecard.favoriteUserChange('{{shopMemberId}}',this)"></span> <span class="star disable shopmember_{{shopMemberId}}"
onclick="Namecard.favoriteUserChange('{{shopMemberId}}',this)"></span>
<span>お気に入り登録</span> <span>お気に入り登録</span>
</div> </div>
</button> </button>
{{/isFavorite}} {{/isFavorite}}
{{#isHost}} {{#isHost}}
<button type="button" class="ch_host_btn border-0 bg_green text_white" <button type="button" class="ch_host_btn border-0 bg_green text_white" data-toggle="modal"
onclick="FermiWebSocketBridge.requestHostChange('{{loginId}}');"> data-target="#changeHostModal" value="#profileModal2" data-collaborationId='{{collaborationId}}'>
<!-- onclick="FermiWebSocketBridge.requestHostChange('{{collaborationId}}');"> -->
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<div class="img_wrap"> <div class="img_wrap">
<img src="icon/icon_change_host.svg" alt="ホスト変更"> <img src="icon/icon_change_host.svg" alt="ホスト変更">
......
<!-- TODO: peacekim not using this file-->
<!-- 通話 --> <!-- 通話 -->
<div class="collabo_area_container chat_message" data-messageid="{{messageId}}"> <div class="collabo_area_container chat_message" data-messageid="{{messageId}}">
<!-- 時刻 --> <!-- 時刻 -->
......
...@@ -34,15 +34,10 @@ ...@@ -34,15 +34,10 @@
<div class="collabo_btn"> <div class="collabo_btn">
<button class="collaboation_join_button" type="button" name="button" <button class="collaboation_join_button" type="button" name="button"
class="d-flex flex-row justify-content-center align-items-center" class="d-flex flex-row justify-content-center align-items-center"
onclick="NativeBridgeDelegate.joinCollaboration('{{collaborationType}}', {{meetingId}})" {{#isEnded}} disabled onclick="NativeBridgeDelegate.joinCollaboration('{{collaborationType}}', {{meetingId}})" {{#isEnded}}
{{/isEnded}}> disabled {{/isEnded}}>
<img src="icon/icon_profile_phone_white.svg" alt="通話"> <img src="icon/icon_profile_phone_white.svg" alt="通話">
{{#isEnded}} <span class="collaboration_join_message">{{collaborationJoinMessage}}</span>
<span class="collaboration_join_message">終了しました</span>
{{/isEnded}}
{{^isEnded}}
<span class="collaboration_join_message">参加する</span>
{{/isEnded}}
</button> </button>
</div> </div>
</div> </div>
......
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