mirror of https://github.com/zulip/zulip.git
Add stream_id to page_params.{subscriptions,unsubscribed}
This isn't used by the client yet, but it should be harmless. (imported from commit e09ac65ca802f5cf16375b8a93d34e0dfbcb76b4)
This commit is contained in:
parent
0366659bee
commit
3a96686cbc
|
@ -358,6 +358,7 @@ function populate_subscriptions(subs, subscribed) {
|
|||
invite_only: elem.invite_only,
|
||||
notifications: elem.notifications, subscribed: subscribed,
|
||||
email_address: elem.email_address,
|
||||
stream_id: elem.stream_id,
|
||||
subscribers: elem.subscribers,
|
||||
description: elem.description});
|
||||
sub_rows.push(sub);
|
||||
|
|
|
@ -897,6 +897,7 @@ def notify_subscriptions_added(user_profile, sub_pairs, stream_emails, no_log=Fa
|
|||
|
||||
# Send a notification to the user who subscribed.
|
||||
payload = [dict(name=stream.name,
|
||||
stream_id=stream.id,
|
||||
in_home_view=subscription.in_home_view,
|
||||
invite_only=stream.invite_only,
|
||||
color=subscription.color,
|
||||
|
@ -1912,6 +1913,7 @@ def gather_subscriptions_helper(user_profile):
|
|||
'invite_only': stream["invite_only"],
|
||||
'color': sub["color"],
|
||||
'notifications': sub["notifications"],
|
||||
'stream_id': stream["id"],
|
||||
'description': stream["description"],
|
||||
'email_address': encode_email_address_helper(stream["name"], stream["email_token"])}
|
||||
if subscribers is not None:
|
||||
|
|
|
@ -280,6 +280,7 @@ class EventsRegisterTest(AuthedTestCase):
|
|||
('in_home_view', check_bool),
|
||||
('name', check_string),
|
||||
('notifications', check_bool),
|
||||
('stream_id', check_int),
|
||||
('subscribers', check_list(check_int)),
|
||||
])
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue