Commit 0ce71caa by Lee Munkyeong

コメント追加

parent 0f021876
......@@ -659,6 +659,9 @@ CHAT_UI.showConfirmView = function(isInvite) {
//todo android create room api
//android.createChatRoom(type,userIdList,encodedRoomName) need to add joinRoom method and call here as callback ..
socket.emit('createNewRoom', userIdList, encodedRoomName, function(newRoomId) {
socket.emit('joinRoom', newRoomId, newRoomName, function () {
CHAT.saveRoomInfo(newRoomId, newRoomName);
......@@ -672,7 +675,7 @@ CHAT_UI.showConfirmView = function(isInvite) {
socket.on('createNewRoom', (shopMemberIdList, newRoomName, callback) => {
/*socket.on('createNewRoom', (shopMemberIdList, newRoomName, callback) => {
const user = onlineUsers.getUser(socket.id)
if(user){
var loginIdListObj = new Object();
......@@ -703,7 +706,7 @@ CHAT_UI.showConfirmView = function(isInvite) {
socket.emit("retryJoinProcess")
//join process
}
})
})*/
......
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