do not send binary data through socket
This commit is contained in:
parent
ddd052b5d4
commit
0bea8edbd9
3 changed files with 6 additions and 6 deletions
|
|
@ -513,8 +513,8 @@ const processChats = debounce(() => {
|
||||||
didDisconnect: pubToFeed[out.with] === 'disconnected',
|
didDisconnect: pubToFeed[out.with] === 'disconnected',
|
||||||
id: out.with + outID,
|
id: out.with + outID,
|
||||||
messages: msgs,
|
messages: msgs,
|
||||||
recipientAvatar: pubToAvatar[out.with] || null,
|
recipientAvatar: null,
|
||||||
recipientDisplayName: pubToDn[out.with] || null,
|
recipientDisplayName: null,
|
||||||
lastSeenApp: pubToLastSeenApp[out.with] || null
|
lastSeenApp: pubToLastSeenApp[out.with] || null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,8 @@ const react = debounce(() => {
|
||||||
if (!inContact && !isDisconnected) {
|
if (!inContact && !isDisconnected) {
|
||||||
newReceivedReqsMap[req.from] = {
|
newReceivedReqsMap[req.from] = {
|
||||||
id,
|
id,
|
||||||
requestorAvatar: pubToAvatar[req.from] || null,
|
requestorAvatar: null,
|
||||||
requestorDisplayName: pubToDn[req.from] || null,
|
requestorDisplayName: null,
|
||||||
requestorPK: req.from,
|
requestorPK: req.from,
|
||||||
timestamp: req.timestamp
|
timestamp: req.timestamp
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -95,13 +95,13 @@ const react = debounce(() => {
|
||||||
|
|
||||||
newReqs.push({
|
newReqs.push({
|
||||||
id: sentReqID,
|
id: sentReqID,
|
||||||
recipientAvatar: pubToAvatar[recipientPub] || null,
|
recipientAvatar: null,
|
||||||
recipientChangedRequestAddress:
|
recipientChangedRequestAddress:
|
||||||
// if we haven't received the other's user current handshake address,
|
// if we haven't received the other's user current handshake address,
|
||||||
// let's assume he hasn't changed it and that this request is still
|
// let's assume he hasn't changed it and that this request is still
|
||||||
// valid
|
// valid
|
||||||
typeof currAddress !== 'undefined' && handshakeAddress !== currAddress,
|
typeof currAddress !== 'undefined' && handshakeAddress !== currAddress,
|
||||||
recipientDisplayName: pubToDN[recipientPub] || null,
|
recipientDisplayName: null,
|
||||||
recipientPublicKey: recipientPub,
|
recipientPublicKey: recipientPub,
|
||||||
timestamp
|
timestamp
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue