From d154ea824eee868623e53418bb17432b83bc9f27 Mon Sep 17 00:00:00 2001 From: John Manuel Derecho Date: Mon, 13 May 2024 23:42:15 +0800 Subject: [PATCH] fix custom_attributes errors --- lib/digitaltolk/mail_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/digitaltolk/mail_helper.rb b/lib/digitaltolk/mail_helper.rb index 8f343774ccf36..b4c6df32f6955 100644 --- a/lib/digitaltolk/mail_helper.rb +++ b/lib/digitaltolk/mail_helper.rb @@ -62,7 +62,8 @@ def self.no_reply_email?(email) end def self.csat_disabled?(message) - return false if message.blank? && (convo = message.conversation).blank? + return false if message.blank? + return false if (convo = message.conversation).blank? return true if blocked_csat?(convo) last_message = convo.messages.incoming.last