From 8be5535a2b65691669780f52d79f2722ce034dfc Mon Sep 17 00:00:00 2001 From: Shariq Ansari <30859809+shariquerik@users.noreply.github.com> Date: Wed, 3 Sep 2025 12:06:21 +0530 Subject: [PATCH] chore: removed comment (cherry picked from commit 8d0d234ac131b52266bdebb248b232b4923f97c0) --- crm/api/whatsapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm/api/whatsapp.py b/crm/api/whatsapp.py index af360a07..7a7ef240 100644 --- a/crm/api/whatsapp.py +++ b/crm/api/whatsapp.py @@ -36,7 +36,7 @@ def on_update(doc, method): def notify_agent(doc): if doc.type == "Incoming": doctype = doc.reference_doctype - if doctype and doctype.startswith("CRM "): #checks if there is a valid doctype, this is required because for making sure notification is triggered only for whatsapp message with a valid doctype assiged by validate fundtion. in absence of this ("doctype and ") addition, it stops creation of new whatsapp message. + if doctype and doctype.startswith("CRM "): doctype = doctype[4:].lower() notification_text = f"""