Fix reset_dependency for if the dep is indirect (#2664)
Fix reset_dependency for if the dep is indirect (#2664)

Like for in element-desktop
matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk