iachat/app/javascript/dashboard
Shivam Mishra f18ed01eb7
feat: use of imap login as default if present (#10249)
When moving form using Gmail Legacy auth to using OAuth, we need the
email address that will be used to connect. This is because we need to
store this email address in the cache and reuse when we get the callback
to find the associated inbox.

However there are cases where the imap login might be
`support@company.com` and the email used to communicate will be
`contact@company.com` (Probably an alias) In that case, we need to send
the correct email address to Chatwoot when re-authenticating

At the moment, we used the inbox email. This PR adds a check that
defaults to to `imap_login` if that is available and imap is enabled

This PR also fixes an unrelated problem where the email inbox creation
flow was not working

---

Tested it, it is working correctly

![CleanShot 2024-10-09 at 14 23
47@2x](https://github.com/user-attachments/assets/0e2cb6c8-1224-4b45-b34a-7b19611249bc)
2024-10-09 15:01:11 +05:30
..
api chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
assets feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
components fix: Import for vue-letter (#10246) 2024-10-08 09:40:37 -07:00
composables fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
constants feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
helper chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
i18n chore: update interpolation syntax for i18n files (#10198) 2024-10-07 11:12:40 -07:00
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat: Update widget builder to support dark mode (#10230) 2024-10-04 15:53:31 -07:00
routes feat: use of imap login as default if present (#10249) 2024-10-09 15:01:11 +05:30
store chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
App.vue fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
featureFlags.js chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00