In this diff we replace threadTypes.SIDEBAR checks with threadTypeIsSidebar, a new utility function that also checks threadTypes.THICK_SIDEBAR. This allows our business logic to treat the two in the same way.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- ashoat/dmop
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/types/thread-types-enum.js | ||
---|---|---|
168 | It might be more convenient to accept an optional threadType. Then, in some places, we could simplify the usages by passing threadInfo?.threadType as a parameter. |
lib/types/thread-types-enum.js | ||
---|---|---|
168 | That's a fair point, but it's a change that makes sense to make for all of the threadTypeIs* functions above, and I don't have time to make it this morning |