use getter
This commit is contained in:
parent
6768533515
commit
d4ed5e0355
1 changed files with 1 additions and 3 deletions
|
|
@ -29,9 +29,6 @@ let pubToAvatar = {}
|
||||||
/** @type {Streams.DisplayNames} */
|
/** @type {Streams.DisplayNames} */
|
||||||
let pubToDn = {}
|
let pubToDn = {}
|
||||||
|
|
||||||
/** @type {Streams.Incomings} */
|
|
||||||
let pubToIncoming = {}
|
|
||||||
|
|
||||||
/** @type {SimpleReceivedRequest[]} */
|
/** @type {SimpleReceivedRequest[]} */
|
||||||
let currentReqs = []
|
let currentReqs = []
|
||||||
|
|
||||||
|
|
@ -44,6 +41,7 @@ let currentNode = {}
|
||||||
const react = () => {
|
const react = () => {
|
||||||
/** @type {SimpleReceivedRequest[]} */
|
/** @type {SimpleReceivedRequest[]} */
|
||||||
const finalReqs = []
|
const finalReqs = []
|
||||||
|
const pubToIncoming = Streams.getPubToIncoming()
|
||||||
|
|
||||||
for (const [id, req] of Object.entries(currentNode)) {
|
for (const [id, req] of Object.entries(currentNode)) {
|
||||||
const notAccepted = typeof pubToIncoming[req.from] === 'undefined'
|
const notAccepted = typeof pubToIncoming[req.from] === 'undefined'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue