Details
Details
I confirmed that created a message in a thread with an @-tag of somebody who is already in the thread does not cause the error described in the linked task
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Better to handle this in fetchServerThreadInfos, so it can't happen from any callsite
keyserver/src/fetchers/thread-fetchers.js | ||
---|---|---|
81–83 ↗ | (On Diff #29170) | Is it really correct? What if threadIDs isn't specified in filter but threadID is? |
keyserver/src/fetchers/thread-fetchers.js | ||
---|---|---|
81–83 ↗ | (On Diff #29170) | It's correct. If threadIDs is specified and empty, we are asking the function to filter to an empty list of threadIDs. If threadID is specified, there is no way it is empty... it can have precisely 1 value, there is no way for it to have 0 values if it's specified. |
keyserver/src/fetchers/thread-fetchers.js | ||
---|---|---|
81–83 ↗ | (On Diff #29170) | Ah, makes sense - we're checking if size === 0 which would be false if threadIDs was null |