feat: Show re-auth flag only for legacy Gmail and OAuth channels (#10189)

This commit is contained in:
Shivam Mishra
2024-10-02 13:21:02 +05:30
committed by GitHub
parent 42f6621afb
commit fce4d5e26e
2 changed files with 8 additions and 2 deletions

View File

@@ -61,6 +61,10 @@ class Channel::Email < ApplicationRecord
provider == 'google'
end
def legacy_google?
imap_enabled && imap_address == 'imap.gmail.com'
end
private
def ensure_forward_to_email