mirror of https://github.com/zulip/zulip.git
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:
parent
879aa130ad
commit
064fca5b76
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue