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

pull/3196/head
Darren Yu 3 weeks ago
parent a908ec462f
commit 480b10dbdb
No known key found for this signature in database
GPG Key ID: 2D69AA5646405984

@ -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
}

Loading…
Cancel
Save