Skip to content

Commit

Permalink
feat: added support to override default channel
Browse files Browse the repository at this point in the history
  • Loading branch information
sohailfatima committed Oct 8, 2024
1 parent d882dbd commit 377fafe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edx_ace/channel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ def get_channel_for_message(channel_type, message):
channel_names = []

if channel_type == ChannelType.EMAIL:
if message.options.get('transactional'):
if message.options.get('override_default_channel'):
channel_names = [settings.ACE_CHANNEL_TRANSACTIONAL_EMAIL]
elif message.options.get('transactional'):
channel_names = [settings.ACE_CHANNEL_TRANSACTIONAL_EMAIL, settings.ACE_CHANNEL_DEFAULT_EMAIL]
else:
channel_names = [settings.ACE_CHANNEL_DEFAULT_EMAIL]
Expand Down

0 comments on commit 377fafe

Please sign in to comment.