mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
stream_data: Modify remove_subscriber to use stream id.
This commit changes stream_data.remove_subscriber 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:
@@ -358,7 +358,7 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!stream_data.remove_subscriber(sub.name, user_id)) {
|
||||
if (!stream_data.remove_subscriber(sub.stream_id, user_id)) {
|
||||
blueslip.warn('Cannot process peer_remove event.');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user