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:
sahil839
2020-07-09 01:58:35 +05:30
committed by Tim Abbott
parent 525b42cecc
commit a0d2c7db16
7 changed files with 30 additions and 29 deletions

View File

@@ -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.