mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
subs: Fix color picker issue with subscribing.
This commit is contained in:
@@ -393,7 +393,7 @@ exports.mark_subscribed = function (stream_name, attrs) {
|
|||||||
if (! sub.subscribed) {
|
if (! sub.subscribed) {
|
||||||
// Add yourself to a stream we already know about client-side.
|
// Add yourself to a stream we already know about client-side.
|
||||||
var color = get_color();
|
var color = get_color();
|
||||||
exports.set_color(stream_name, color);
|
exports.set_color(sub.stream_id, color);
|
||||||
sub.subscribed = true;
|
sub.subscribed = true;
|
||||||
if (attrs) {
|
if (attrs) {
|
||||||
stream_data.set_subscriber_emails(sub, attrs.subscribers);
|
stream_data.set_subscriber_emails(sub, attrs.subscribers);
|
||||||
|
|||||||
Reference in New Issue
Block a user