refresh missing data

This commit is contained in:
Daniel Lugo 2020-02-04 16:56:28 -04:00
parent d47aa691ba
commit 32c087e69f

View file

@ -55,13 +55,18 @@ const react = () => {
continue continue
} }
if (typeof currAddress === 'undefined') {
// eslint-disable-next-line no-empty-function
Streams.onAddresses(() => {}, recipientPub)()
}
if (typeof pubToAvatar[recipientPub] === 'undefined') { if (typeof pubToAvatar[recipientPub] === 'undefined') {
// eslint-disable-next-line no-empty-function // eslint-disable-next-line no-empty-function
Streams.onAvatar(() => {}, recipientPub) Streams.onAvatar(() => {}, recipientPub)()
} }
if (typeof pubToDN[recipientPub] === 'undefined') { if (typeof pubToDN[recipientPub] === 'undefined') {
// eslint-disable-next-line no-empty-function // eslint-disable-next-line no-empty-function
Streams.onDisplayName(() => {}, recipientPub) Streams.onDisplayName(() => {}, recipientPub)()
} }
finalSentReqs.push({ finalSentReqs.push({
@ -74,14 +79,6 @@ const react = () => {
timestamp timestamp
}) })
} }
if (finalSentReqs.length > 0) {
console.log('-------------------------')
console.log('pub to incoming')
console.log(pubToIncoming)
console.log('-------------------------')
}
currentReqs = finalSentReqs currentReqs = finalSentReqs
listeners.forEach(l => l(currentReqs)) listeners.forEach(l => l(currentReqs))