Skip to content

Commit e13ccda

Browse files
committed
[core] ChatWoot - disable error/succeeded messages
mention #1492 mention #1395
1 parent 2074748 commit e13ccda

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/apps/chatwoot/error/ChatWootErrorReporter.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ export class ChatWootErrorReporter {
3939
}
4040
const template = this.l.key(TKey.JOB_REPORT_ERROR);
4141
const nextDelay = NextAttemptDelayInWholeSeconds(this.job);
42+
if (nextDelay) {
43+
// TODO: Add a way to enable it back in config
44+
// https://github.com/devlikeapro/waha/issues/1395
45+
// There's retries more left - ignore it for now
46+
return;
47+
}
4248
const attempts = {
4349
current: this.job.attemptsMade + 1,
4450
max: this.job.opts?.attempts || 1,
@@ -77,6 +83,10 @@ export class ChatWootErrorReporter {
7783
type: MessageType,
7884
replyTo?: number,
7985
): Promise<void> {
86+
// TODO: Add a way to enable it back in config
87+
// https://github.com/devlikeapro/waha/issues/1395
88+
return null;
89+
8090
const template = this.l.key(TKey.JOB_REPORT_SUCCEEDED);
8191
const attempts = {
8292
current: this.job.attemptsMade + 1,

0 commit comments

Comments
 (0)