mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
Disable stream desktop notifications for new Dropbox users.
(imported from commit 42deed48a2d475912041829a700fea4217868e9e)
This commit is contained in:
committed by
Waseem Daher
parent
b2688bcf43
commit
6b1adf11f7
@@ -24,11 +24,15 @@ def create_user_profile(realm, email, password, active, bot, full_name,
|
||||
short_name, bot_owner, is_mirror_dummy):
|
||||
now = timezone.now()
|
||||
email = UserManager.normalize_email(email)
|
||||
|
||||
enable_stream_desktop_notifications = (realm.domain != 'dropbox.com')
|
||||
|
||||
user_profile = UserProfile(email=email, is_staff=False, is_active=active,
|
||||
full_name=full_name, short_name=short_name,
|
||||
last_login=now, date_joined=now, realm=realm,
|
||||
pointer=-1, is_bot=bot, bot_owner=bot_owner,
|
||||
is_mirror_dummy=is_mirror_dummy,
|
||||
enable_stream_desktop_notifications=enable_stream_desktop_notifications,
|
||||
onboarding_steps=ujson.dumps([]))
|
||||
|
||||
if bot or not active:
|
||||
|
Reference in New Issue
Block a user