fix(share): download on folder share wrongly not counted (#3196)

This commit is contained in:
Darren Yu
2026-01-23 15:25:54 +08:00
committed by GitHub
parent 864332f2e5
commit 2725bd47b5

View File

@@ -302,9 +302,7 @@ func (n *shareNavigator) FollowTx(ctx context.Context) (func(), error) {
func (n *shareNavigator) ExecuteHook(ctx context.Context, hookType fs.HookType, file *File) error {
switch hookType {
case fs.HookTypeBeforeDownload:
if n.singleFileShare {
return n.shareClient.Downloaded(ctx, n.share)
}
return n.shareClient.Downloaded(ctx, n.share)
}
return nil
}