mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	Fix: Mail ate compare with nil date (#7084)
fixes: https://chatwoot-p3.sentry.io/issues/4185144468/?project=6382945
This commit is contained in:
		@@ -54,7 +54,9 @@ class Inboxes::FetchImapEmailsJob < ApplicationJob
 | 
				
			|||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def processed_email?(current_email, last_email_time)
 | 
					  def processed_email?(current_email, last_email_time)
 | 
				
			||||||
    current_email.date < last_email_time
 | 
					    return current_email.date < last_email_time if current_email.date.present?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    false
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def fetch_mail_for_ms_provider(channel)
 | 
					  def fetch_mail_for_ms_provider(channel)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user