Commit 569915e1 by Lee Munkyeong

協業終了のフラグ追加

parent 63a5d405
......@@ -2630,8 +2630,8 @@ CHAT_UI.startCollaboration = function(collaborationType) {
return;
}
socket.emit('createMessage', {
text: encodedText + messageSeperator + messageType.IMAGE
}, 1);
text: DATA_MESSAGE_SCHEME + FINISH_ALL_COLLABORATION_SIGNAL
}, 0);
android.finishAllCollaboration();
}
......
......@@ -196,6 +196,10 @@ function setSocketAction () {
}
let type;
let collaborationType;
if (message.text == DATA_MESSAGE_SCHEME + FINISH_ALL_COLLABORATION_SIGNAL) {
console.log('allFINISH');
return;
}
if ( message.text.includes(messageSeperator) ) {
let text = message.text.split(messageSeperator);
message.text = text[0];
......
......@@ -68,4 +68,5 @@ const HOST_REQUEST_FLG = {
}
const messageSeperator = "<::split>";
const dataMessageScheme = "::NOT_MESSAGE";
const DATA_MESSAGE_SCHEME = "::NOT_MESSAGE";
const FINISH_ALL_COLLABORATION_SIGNAL = "::ALL_COLLABORATION_END";
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