Skip to content

Commit

Permalink
fix: Fixed autoDownload function (close #1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Dec 24, 2023
1 parent ce7bd1f commit 8791f4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/createSessionUtil.ts
Expand Up @@ -239,7 +239,10 @@ export default class CreateSessionUtil {
download(message, client, req.logger);
}

if (req.serverOptions?.websocket?.autoDownload) {
if (
req.serverOptions?.websocket?.autoDownload ||
req.serverOptions?.webhook?.autoDownload
) {
await autoDownload(client, req, message);
}

Expand Down

0 comments on commit 8791f4f

Please sign in to comment.