mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
stream_data: Modify is_user_subscribed to use stream id.
This commit changes stream_data.is_user_subscribed to use stream id instead of stream name. We are using stream ids so that we can avoid bugs related to live update after stream rename.
This commit is contained in:
@@ -102,7 +102,7 @@ exports.would_receive_message = function (user_id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return stream_data.is_user_subscribed(focused_recipient.stream, user_id);
|
||||
return stream_data.is_user_subscribed(focused_recipient.stream_id, user_id);
|
||||
}
|
||||
|
||||
// PM, so check if the given email is in the recipients list.
|
||||
|
||||
Reference in New Issue
Block a user