notifications: Pass realm_creation argument to enqueue_welcome_emails.

This commit is contained in:
Vishnu Ks
2018-06-29 13:01:00 +05:30
committed by Tim Abbott
parent 9779117e3c
commit 6b3706494c
3 changed files with 10 additions and 6 deletions

View File

@@ -487,7 +487,7 @@ def followup_day2_email_delay(user: UserProfile) -> timedelta:
# or comes in while they are dealing with their inbox.
return timedelta(days=days_to_delay, hours=-1)
def enqueue_welcome_emails(user: UserProfile) -> None:
def enqueue_welcome_emails(user: UserProfile, realm_creation: bool=False) -> None:
from zerver.context_processors import common_context
if settings.WELCOME_EMAIL_SENDER is not None:
# line break to avoid triggering lint rule