Skip to content

Commit

Permalink
fix duplicated email sending on project chat
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel committed Aug 11, 2020
1 parent 76b758e commit 2c4bc39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/services/messaging/message_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ def send_message_after_chat(chat_from: int, chat: str, project_id: int):
message.message = chat
messages.append(dict(message=message, user=user))

MessageService._push_messages(messages)
# it's important to keep that line inside the if to avoid duplicated emails
MessageService._push_messages(messages)

@staticmethod
def send_favorite_project_activities(user_id: int):
Expand Down

0 comments on commit 2c4bc39

Please sign in to comment.