We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5bd11f + 86b2999 commit 14ea5d9Copy full SHA for 14ea5d9
src/api/integrations/chatwoot/services/chatwoot.service.ts
@@ -735,7 +735,12 @@ export class ChatwootService {
735
}
736
737
this.logger.verbose('find inbox by name');
738
- const findByName = inbox.payload.find((inbox) => inbox.name === this.getClientCwConfig().name_inbox);
+ let findByName = inbox.payload.find((inbox) => inbox.name === this.getClientCwConfig().name_inbox);
739
+
740
+ if (!findByName) {
741
+ findByName = inbox.payload.find((inbox) => inbox.name === this.getClientCwConfig().name_inbox.split('-cwId-')[0]);
742
+ }
743
744
745
if (!findByName) {
746
this.logger.warn('inbox not found');
0 commit comments