Commit 0ef45e70 by Kang Donghun

Merge branch 'feature/release_sp3_finish_collaboration' into 'develop'

web-socketから届いたメッセージのmeetingID取得処理追加

See merge request !127
parents 6e7fcb8f f6c516bb
...@@ -201,6 +201,10 @@ function setSocketAction () { ...@@ -201,6 +201,10 @@ function setSocketAction () {
type = text[1]; type = text[1];
if (type == messageType.COMMUNICATIONSTART || type == messageType.COMMUNICATIONEND) { if (type == messageType.COMMUNICATIONSTART || type == messageType.COMMUNICATIONEND) {
collaborationType = text[2]; collaborationType = text[2];
var meetingId = 0;
if (collaborationType == CHAT_UTIL.getCollaborationType(collaborationTypeKey.DOCUMENT)) {
meetingId = text[3];
}
var userInCollaboration; var userInCollaboration;
if (CHAT_UTIL.isIOS()) { if (CHAT_UTIL.isIOS()) {
userInCollaboration = JSON.parse(CHAT_DB.getUserInfoList(message.userId)); userInCollaboration = JSON.parse(CHAT_DB.getUserInfoList(message.userId));
...@@ -218,6 +222,7 @@ function setSocketAction () { ...@@ -218,6 +222,7 @@ function setSocketAction () {
insertDate: message.insertDate, insertDate: message.insertDate,
collaborationType: collaborationType, collaborationType: collaborationType,
isToday: true, isToday: true,
meetingId: meetingId,
createdAtDay: messageTime.createdAtDay, createdAtDay: messageTime.createdAtDay,
createdAtTime: messageTime.createdAtTime, createdAtTime: messageTime.createdAtTime,
isOtherYear: false isOtherYear: false
......
...@@ -253,6 +253,7 @@ $(function () { ...@@ -253,6 +253,7 @@ $(function () {
break; break;
case "JoinRoomResponse": case "JoinRoomResponse":
if (json.resultCode == 200) { if (json.resultCode == 200) {
hostSearchInterval();
for (let key in g_participants) { for (let key in g_participants) {
loginIdList.push(key); loginIdList.push(key);
} }
...@@ -338,7 +339,23 @@ function Coview_changeHost(userId) { ...@@ -338,7 +339,23 @@ function Coview_changeHost(userId) {
function Coview_addLoginId(loginId) { function Coview_addLoginId(loginId) {
console.log("addUser loginId = " + loginId); console.log("addUser loginId = " + loginId);
var url = "https://livetaskyell.abookcloud.com/auth/getuser";
$.ajax({
url : url,
method : 'post',
data : {
id : loginId
},
success : function (result) {
console.log("result", result);
if (result.statusCode != 200) {
coview_api.addUser(loginId); coview_api.addUser(loginId);
}
},
error : function (err) {
console.log(err.toString());
}
});
} }
function Coview_connect_audio_collaboration() { function Coview_connect_audio_collaboration() {
......
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