Remove unnecessary gun subs (let front handle)
This commit is contained in:
parent
14db1a3efd
commit
0ffbb6bbd6
1 changed files with 0 additions and 16 deletions
|
|
@ -51,10 +51,6 @@ const react = debounce(() => {
|
||||||
// maps a pk to a feed, messages if subbed and pk is pubbing, null /
|
// maps a pk to a feed, messages if subbed and pk is pubbing, null /
|
||||||
// 'disconnected' otherwise
|
// 'disconnected' otherwise
|
||||||
const pubToFeed = Streams.getPubToFeed()
|
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)}`)
|
logger.info(`pubToLastSentREqID length: ${size(pubToLastSentReqID)}`)
|
||||||
|
|
||||||
|
|
@ -80,18 +76,6 @@ const react = debounce(() => {
|
||||||
// eslint-disable-next-line no-empty-function
|
// eslint-disable-next-line no-empty-function
|
||||||
Streams.onAddresses(() => {}, recipientPub)()
|
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({
|
newReqs.push({
|
||||||
id: sentReqID,
|
id: sentReqID,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue