refresh missing data
This commit is contained in:
parent
d47aa691ba
commit
32c087e69f
1 changed files with 7 additions and 10 deletions
|
|
@ -55,13 +55,18 @@ const react = () => {
|
|||
continue
|
||||
}
|
||||
|
||||
if (typeof currAddress === 'undefined') {
|
||||
// eslint-disable-next-line no-empty-function
|
||||
Streams.onAddresses(() => {}, recipientPub)()
|
||||
}
|
||||
|
||||
if (typeof pubToAvatar[recipientPub] === 'undefined') {
|
||||
// eslint-disable-next-line no-empty-function
|
||||
Streams.onAvatar(() => {}, recipientPub)
|
||||
Streams.onAvatar(() => {}, recipientPub)()
|
||||
}
|
||||
if (typeof pubToDN[recipientPub] === 'undefined') {
|
||||
// eslint-disable-next-line no-empty-function
|
||||
Streams.onDisplayName(() => {}, recipientPub)
|
||||
Streams.onDisplayName(() => {}, recipientPub)()
|
||||
}
|
||||
|
||||
finalSentReqs.push({
|
||||
|
|
@ -74,14 +79,6 @@ const react = () => {
|
|||
timestamp
|
||||
})
|
||||
}
|
||||
|
||||
if (finalSentReqs.length > 0) {
|
||||
console.log('-------------------------')
|
||||
console.log('pub to incoming')
|
||||
console.log(pubToIncoming)
|
||||
console.log('-------------------------')
|
||||
}
|
||||
|
||||
currentReqs = finalSentReqs
|
||||
|
||||
listeners.forEach(l => l(currentReqs))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue