Skip to content

Commit e4780ba

Browse files
committed
Fix payload response
Fix the bug in which both private and public payload had the same response
1 parent 4003858 commit e4780ba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

server/response-builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ResponseBuilder{
5757
}
5858

5959

60-
buildTypeNewPayload(payload){
60+
buildTypeNewPrivatePayload(payload){
6161
const response = this.response
6262
response.type = Constants.RES_TYPE_NEW_PRIVATE_PAYLOAD
6363
response.payload = payload

server/signaling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function handleMessage(requesterId, data){
127127
toId = requesterId
128128
const payload = JSON.parse(jsonData.payload)
129129
clients.get(requesterId).privatePayload = payload
130-
res.buildTypeNewPayload(jsonData.payload)
130+
res.buildTypeNewPrivatePayload(jsonData.payload)
131131
}
132132

133133
} else if (jsonData.type == Constants.REQ_TYPE_GET_ALL_PEER_PAYLOADS) {

0 commit comments

Comments
 (0)