Skip to content

Commit

Permalink
fix: do not send notifications for system messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkothari22 committed Oct 13, 2024
1 parent 3be6219 commit fa3c36e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions raven/raven_messaging/doctype/raven_message/raven_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ def send_push_notification(self):
# 3. If the message is a reply, send a push notification to the user who is being replied to
# 4. If the message is in a channel, send a push notification to all the users in the channel (topic)

if self.message_type == "System":
return

channel_doc = frappe.get_cached_doc("Raven Channel", self.channel_id)

if channel_doc.is_direct_message:
Expand Down

0 comments on commit fa3c36e

Please sign in to comment.