diff --git a/services/gunDB/contact-api/events/onSentReqs.js b/services/gunDB/contact-api/events/onSentReqs.js index 653ad3dc..f06518e1 100644 --- a/services/gunDB/contact-api/events/onSentReqs.js +++ b/services/gunDB/contact-api/events/onSentReqs.js @@ -51,10 +51,6 @@ const react = debounce(() => { // maps a pk to a feed, messages if subbed and pk is pubbing, null / // 'disconnected' otherwise const pubToFeed = Streams.getPubToFeed() - // pk to avatar - const pubToAvatar = Streams.getPubToAvatar() - // pk to display name - const pubToDN = Streams.getPubToDn() logger.info(`pubToLastSentREqID length: ${size(pubToLastSentReqID)}`) @@ -80,18 +76,6 @@ const react = debounce(() => { // eslint-disable-next-line no-empty-function Streams.onAddresses(() => {}, recipientPub)() } - // no avatar for this pk? let's ask the corresponding stream to sub to - // gun.user(pk).get('avatar') - if (typeof pubToAvatar[recipientPub] === 'undefined') { - // eslint-disable-next-line no-empty-function - Streams.onAvatar(() => {}, recipientPub)() - } - // no display name for this pk? let's ask the corresponding stream to sub to - // gun.user(pk).get('displayName') - if (typeof pubToDN[recipientPub] === 'undefined') { - // eslint-disable-next-line no-empty-function - Streams.onDisplayName(() => {}, recipientPub)() - } newReqs.push({ id: sentReqID,