mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
Use user_ids, not emails, for bulk stream operations.
We now return user_ids for subscribers to streams in add-stream events. This allows us to eliminate the UserLite class for both bulk adds and bulk removes. It also simplifies some JS code that already wanted to use user_ids, not emails. Fixes #6898
This commit is contained in:
@@ -103,7 +103,7 @@ exports.mark_subscribed = function (sub, subscribers, color) {
|
||||
}
|
||||
stream_data.subscribe_myself(sub);
|
||||
if (subscribers) {
|
||||
stream_data.set_subscriber_emails(sub, subscribers);
|
||||
stream_data.set_subscribers(sub, subscribers);
|
||||
}
|
||||
|
||||
subs.update_settings_for_subscribed(sub);
|
||||
|
||||
Reference in New Issue
Block a user