iachat/spec
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
..
actions
assets
builders feat: Render instagram reels in Chatwoot (#9829) 2024-07-24 12:58:12 -07:00
channels
configs
controllers feat: use of imap login as default if present (#10249) 2024-10-09 15:01:11 +05:30
dispatchers
drops
enterprise chore: Custom Roles to manage permissions [ UI ] (#9865) 2024-09-17 11:40:11 -07:00
factories fix: Include uncategorized articles in the all article section to allow edit/delete (#10153) 2024-09-23 23:39:03 -07:00
finders
fixtures
helpers
integration
jobs chore: [Snyk] Security upgrade rspec-rails from 6.1.4 to 6.1.5 (#10066) 2024-09-16 09:44:07 +05:30
lib feat: Provision captain accounts automatically (#10168) 2024-09-26 19:21:29 -07:00
listeners
mailboxes
mailers
models feat: Provision captain accounts automatically (#10168) 2024-09-26 19:21:29 -07:00
policies
presenters
requests/api/v1
services feat: Add the ability to un-assign teams using automation (#9668) 2024-06-26 12:40:36 -07:00
support
workers
rails_helper.rb
spec_helper.rb
test_helper.rb