Squash/socket kim ec
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
96 96 97 97 // メッセージ表示 98 98 let messages = NativeBridgeDataSource.getMessagesByRoomID(roomID); 99 ChatRoom.prependMessage(messages); 99 ChatRoom.prependMessage(messages, roomID); -
Master
[must]
ChatRoom.prependMessage
methodのパラメータはmessagesのみなので、roomIDはいらないかと思います。 -
-
-
1 1 CHAT_SOCKET.bindOnNewMessage = function () { 2 2 // New Message 3 3 // #36170 4 socket.on(SOCKET_KEY.NEW_MESSAGE, function (message, roomID, roomName) { 5 CHAT_SOCKET.handleMessage(message, roomName, SOCKET_KEY.NEW_MESSAGE); 4 socket.on(SOCKET_KEY.NEW_MESSAGE, function (message, roomID, roomName, onlineUsers) { 5 CHAT_SOCKET.handleMessage(message, roomName, SOCKET_KEY.NEW_MESSAGE, roomID, onlineUsers); 6 6 }); 7 7 8 socket.on(SOCKET_KEY.NEW_COMMUNICATION, function (message, roomID, roomName) { 9 CHAT_SOCKET.handleMessage(message, roomName, SOCKET_KEY.NEW_COMMUNICATION); 8 socket.on(SOCKET_KEY.NEW_COMMUNICATION, function (message, roomID, roomName, collaborationType, meetingID) { 9 CHAT_SOCKET.handleMessage(message, roomName, SOCKET_KEY.NEW_COMMUNICATION, null, null, collaborationType, meetingID); -
Master
[ask]
roomID
はsocketからもらうので、そのまま渡したらどうですか? -
-
-
-
merged
Toggle commit list