import: Fix use of unused Subscription.notifications.

This code should have been interacting with the specific sub-fields
for notifications.
This commit is contained in:
Roman Godov 2018-07-27 00:06:22 +03:00 committed by Tim Abbott
parent 879aa130ad
commit 064fca5b76
2 changed files with 9 additions and 3 deletions

View File

@ -210,8 +210,10 @@ def build_subscription(recipient_id: int, user_id: int,
subscription_id: int) -> ZerverFieldsT:
subscription = dict(
recipient=recipient_id,
notifications=False,
color=random.choice(stream_colors),
audible_notifications=True,
push_notifications=False,
email_notifications=False,
desktop_notifications=True,
pin_to_top=False,
in_home_view=True,

View File

@ -483,8 +483,10 @@ def build_pm_recipient_sub_from_user(zulip_user_id: int, recipient_id: int,
sub = dict(
recipient=recipient_id,
notifications=False,
color=random.choice(stream_colors),
audible_notifications=True,
push_notifications=False,
email_notifications=False,
desktop_notifications=True,
pin_to_top=False,
in_home_view=True,
@ -500,8 +502,10 @@ def build_subscription(channel_members: List[str], zerver_subscription: List[Zer
for member in channel_members:
sub = dict(
recipient=recipient_id,
notifications=False,
color=random.choice(stream_colors),
audible_notifications=True,
push_notifications=False,
email_notifications=False,
desktop_notifications=True,
pin_to_top=False,
in_home_view=True,