do not send binary data through socket

This commit is contained in:
Daniel Lugo 2020-11-18 15:05:53 -04:00
parent ddd052b5d4
commit 0bea8edbd9
3 changed files with 6 additions and 6 deletions

View file

@ -513,8 +513,8 @@ const processChats = debounce(() => {
didDisconnect: pubToFeed[out.with] === 'disconnected',
id: out.with + outID,
messages: msgs,
recipientAvatar: pubToAvatar[out.with] || null,
recipientDisplayName: pubToDn[out.with] || null,
recipientAvatar: null,
recipientDisplayName: null,
lastSeenApp: pubToLastSeenApp[out.with] || null
}

View file

@ -63,8 +63,8 @@ const react = debounce(() => {
if (!inContact && !isDisconnected) {
newReceivedReqsMap[req.from] = {
id,
requestorAvatar: pubToAvatar[req.from] || null,
requestorDisplayName: pubToDn[req.from] || null,
requestorAvatar: null,
requestorDisplayName: null,
requestorPK: req.from,
timestamp: req.timestamp
}

View file

@ -95,13 +95,13 @@ const react = debounce(() => {
newReqs.push({
id: sentReqID,
recipientAvatar: pubToAvatar[recipientPub] || null,
recipientAvatar: null,
recipientChangedRequestAddress:
// 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
// valid
typeof currAddress !== 'undefined' && handshakeAddress !== currAddress,
recipientDisplayName: pubToDN[recipientPub] || null,
recipientDisplayName: null,
recipientPublicKey: recipientPub,
timestamp
})