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.
1 parent dfb003f commit 86b2999Copy full SHA for 86b2999
src/api/integrations/chatwoot/services/chatwoot.service.ts
@@ -736,7 +736,12 @@ export class ChatwootService {
736
}
737
738
this.logger.verbose('find inbox by name');
739
- const findByName = inbox.payload.find((inbox) => inbox.name === this.getClientCwConfig().name_inbox);
+ let findByName = inbox.payload.find((inbox) => inbox.name === this.getClientCwConfig().name_inbox);
740
+
741
+ if (!findByName) {
742
+ findByName = inbox.payload.find((inbox) => inbox.name === this.getClientCwConfig().name_inbox.split('-cwId-')[0]);
743
+ }
744
745
746
if (!findByName) {
747
this.logger.warn('inbox not found');
0 commit comments