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

pull/3234/head
Darren Yu 1 week ago committed by GitHub
parent 864332f2e5
commit 2725bd47b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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