Skip to content

Commit

Permalink
Merge branch 'develop' into mobile-app
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkothari22 authored Jan 10, 2025
2 parents fa7867c + 8043542 commit 1136624
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions raven/api/upload_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def upload_file_with_message():
message_doc = frappe.new_doc("Raven Message")
message_doc.channel_id = frappe.form_dict.channelID
message_doc.message_type = "File"
message_doc.text = frappe.form_dict.caption
message_doc.insert()

frappe.form_dict.docname = message_doc.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,14 @@ def resolve_recipient(recipient):
return channels, users


doctypes_to_be_ignored = ["Raven Document Notification", "Version", "Comment"]
doctypes_to_be_ignored = [
"Raven Document Notification",
"Version",
"Comment",
"DocType",
"Module Def",
"Custom Field",
]


def run_document_notification(doc, method):
Expand All @@ -157,7 +164,12 @@ def run_document_notification(doc, method):
if doc.doctype in doctypes_to_be_ignored:
return

if frappe.flags.in_import or frappe.flags.in_patch or frappe.flags.in_install:
if (
frappe.flags.in_import
or frappe.flags.in_patch
or frappe.flags.in_install
or frappe.flags.in_uninstall
):
return

def _get_notifications():
Expand Down

0 comments on commit 1136624

Please sign in to comment.