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:
sahil839
2020-06-21 01:22:31 +05:30
committed by Tim Abbott
parent ddbfbdc386
commit 235601d3b6
4 changed files with 13 additions and 13 deletions

View File

@@ -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;
}