feat: discussions mention notifications

This commit is contained in:
Jannat Patel
2023-11-21 13:32:12 +05:30
parent d314287883
commit 8cdaa7877a
4 changed files with 103 additions and 8 deletions

View File

@@ -97,7 +97,7 @@ override_doctype_class = {
# Hook on document methods and events
doc_events = {
"Discussion Reply": {"after_insert": "lms.lms.utils.create_notification_log"},
"Discussion Reply": {"after_insert": "lms.lms.utils.handle_notifications"},
}
# Scheduled Tasks
@@ -118,9 +118,9 @@ fixtures = ["Custom Field", "Function", "Industry"]
# Overriding Methods
# ------------------------------
#
# override_whitelisted_methods = {
# "frappe.desk.doctype.event.event.get_events": "lms.event.get_events"
# }
override_whitelisted_methods = {
"frappe.desk.search.get_names_for_mentions": "lms.lms.utils.get_names_for_mentions",
}
#
# each overriding function accepts a `data` argument;
# generated from the base implementation of the doctype dashboard,